faded_text
为多行文本集成从左到右的渐变效果。非常适合在更复杂的布局中需要单行文本优雅感时使用。
由 Surf 制作 🏄
{"sdk":"flutter"}{"sdk":"flutter"}^0.15.0^3.0.0^1.24.9以下为英文项目原文快照,最新内容请访问 GitHub。
Made by Surf 🏄♂️🏄♂️🏄♂️
Build Status Coverage Status Pub Version Pub Likes Pub popularity License: Apache 2.0
Enhance your Flutter app with this package, designed to seamlessly integrate left-to-right fade effects for multi-line text. Perfect for when you need that single-line text elegance in more complex layouts. Made by Surf :surfer: Flutter team :cow2:
Add faded_text to your pubspec.yaml file:
dependencies:
faded_text: 0.0.6
You need to create an instance of the FadedText class like a regular Text.
| Regular `Text` with fade effect | `FadedText` |
|---|---|
|
|
Output:
| Fade effect of intrinsic `Text` | Fade effect of `FadedText` |
|---|---|
| https://i.ibb.co/dLghB0q/example-text.png | https://i.ibb.co/3vjgKJg/example-faded-text.png |
You can also create FadedText.rich like regular Text.rich.
| Regular `Tex.rich` with fade effect | `FadedText.rich` |
|---|---|
|
|
Output:
| Fade effect of intrinsic Text.rich | Fade effect of FadedText.rich |
|---|---|
| https://i.ibb.co/PznwK7t/example-text-rich.png | https://i.ibb.co/hM0Kk3g/example-faded-text-rich.png |
All notable changes to this project will be documented here.
To report your issues, file directly in the Issues section.
If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our contribution guide first and send us your pull request.
Your PRs are always welcome.
Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.