FLUTTER ECOSYSTEM

astudilloalex/flutter_gradient_text

快速且簡單地建立漸層文字,無論是線性或徑向,您只需決定顏色和要顯示的文字,非常容易。

flutter_gradient_text 專案封面
Stars
13
Forks
9
最近推送(UTC)
2026年1月3日
專案狀態
未封存
astudilloalex GitHub avatar
語言C++DartCMakeHTMLCSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • lint開發依賴^2.8.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

style: lint

gradient_text

Requires Flutter >=3.29.0

Create gradient texts simply and quickly.

Getting Started

pub package

Only add simple_gradient_text package to your pubspec.yaml.

dependencies:
  simple_gradient_text: 1.4.0

Then run flutter get --no-example.

Note: You can add directly - run flutter pub add simple_gradient_text in your project.

Add a linear gradient text
GradientText(
    'Gradient Text Example',
    style: TextStyle(
        fontSize: 40.0,
    ),
    colors: [
        Colors.blue,
        Colors.red,
        Colors.teal,
    ],
),

Flutter Gradient Text Example

Add a radial gradient text
GradientText(
    'Gradient Text Example',
    style: TextStyle(
        fontSize: 40.0,
    ),
    gradientType: GradientType.radial,
    radius: 2.5,
    colors: [
        Colors.blue,
        Colors.red,
        Colors.teal,
    ],
),

Flutter Gradient Text Example