パッケージ、リポジトリ、アプリカテゴリを検索

gradient_widgets のカバー
パッケージ詳細v0.6.0

gradient_widgets

美しいグラデーションで囲まれた最小限のFlutterウィジェット。

30日間ダウンロード
617
いいね数
89
Pub ポイント
60

パッケージをインストール

flutter pub add gradient_widgets

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

GradientWidgets は、美しいグラデーションで強化された最小限のウィジェットセットを提供する軽量な Flutter パッケージです。開発者が背景、テキスト、その他の UI 要素にグラデーション効果を簡単に適用できるように、シンプルで直感的な API を提供します。複雑な設定なしにアプリに視覚的な魅力を加えるのに最適で、スムーズなグラデーション遷移をサポートし、既存の Flutter プロジェクトにシームレスに統合できます。パッケージはシンプルさとパフォーマンスに焦点を当てており、現代的で視覚的に魅力的なインターフェースに最適です。

用途

  • コンテナにグラデーション背景を追加する
  • グラデーションカラーでテキストを強化する
  • アニメーショングラデーション効果の作成
  • モダンなアプリUIの設計
  • 最小限のコードで視覚的魅力を向上させる
  • ボタンとカードの外観をカスタマイズする

主な機能

  • シンプルなグラデーションウィジェットAPI
  • バックグラウンドおよびテキストのグラデーションをサポート
  • 最小限のパフォーマンスオーバーヘッド
  • Flutter との簡単な統合
  • 綺麗で読みやすいコードベース
  • 外部の依存関係なし

適している対象

  • 視覚的な洗練を求めるUIデザイナー
  • 現代のモバイルアプリを開発する開発者
  • 繊細なグラデーション効果を必要とするプロジェクト
  • 視覚的に豊かなインターフェースのプロトタイピング
  • 美的デザインに焦点を当てたアプリ

注意事項

  • 基本的なグラデーション機能に限定されています
  • 組み込みのアニメーションコントロールなし
  • 複雑なシェーダー効果には適していません
  • グラデーションの方向と色を手動で処理する必要があります
  • 静的または単純な動的グラデーションに最適

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Pub

Gradient Widgets

Gradient Widgets

As of ^0.5.0, shadowColor is available for gradient buttons and cards

A minimal set of Flutter widgets encased with beautiful gradients.

You can use them when your UI needs user attention/focus, , e.g., login or send actions, or important shopping item title (see Gradient Screens to get the idea 😉)

☑️ GradientText

☑️ GradientCard

☑️ GradientButton

☑️ CircularGradientButton + Shadow Color

☑️ GradientProgressIndicator

☑️ CircularGradientProgressIndicator

◻️ GradientAppBar

Installation

In your pubspec.yaml root add:

dependencies:
  gradient_widgets: ^0.6.0

then,

import 'package:gradient_widgets/gradient_widgets.dart';

Usage

Card + Gradient
GradientCard(
    gradient: Gradients.tameer,
    shadowColor: Gradients.tameer.colors.last.withOpacity(0.25),
    elevation: 8,
);

most parameters are the same as the Card.

Progress Indicator + Gradient
Gradient Widgets

must be gradient.colors.length = 2

indeterminate

GradientProgressIndicator(gradient: Gradients.rainbowBlue,);

determinate

GradientProgressIndicator(
  gradient: Gradients.rainbowBlue,
  value: 0.65,
);
Circular Progress Indicator + Gradient
Circular Gradient Progress Widgets

must be gradient.colors.length = 2

indeterminate

GradientCircularProgressIndicator(
  gradient: Gradients.aliHussien,
);

determinate

GradientCircularProgressIndicator(
  gradient: Gradients.aliHussien,
  radius: 100,
);
Normal Button + Gradient
GradientButton(
  child: Text('Gradient'),
  callback: () {},
  gradient: Gradients.backToFuture,
  shadowColor: Gradients.backToFuture.colors.last.withOpacity(0.25),
),

most parameters are the same as any *Button.

Circular Button + Gradient
CircularGradientButton(
  child: Icon(Icons.gradient),
  callback: (){},
  gradient: Gradients.rainbowBlue,
  shadowColor: Gradients.rainbowBlue.colors.last.withOpacity(0.5),
),

most parameters are the same as FloatingActionButton.

Text + Gradient
GradientText(
  'Hello',
  shaderRect: Rect.fromLTWH(0.0, 0.0, 50.0, 50.0),
  gradient: Gradients.hotLinear,
  style: TextStyle(fontSize: 40.0,),
),

all parameters are the same as the Text.


Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト