https://github.com/fluttergenerator/animatedgradienttextview
https://github.com/fluttergenerator/animatedgradienttextview
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fluttergenerator/animatedgradienttextview
- Owner: FlutterGenerator
- License: apache-2.0
- Created: 2025-07-20T18:18:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-20T19:28:54.000Z (11 months ago)
- Last Synced: 2025-07-20T20:01:17.569Z (11 months ago)
- Language: Java
- Size: 219 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://jitpack.io/#FlutterGenerator/AnimatedGradientTextView)
AnimatedGradientTextView : Color gradients for TextView
=======================================================
This library will allow you to create TextView which uses color gradients and custom fonts.
Changelog
---------
* **v0.0.7**
* Fix crash
* **v0.0.6**
* Fix crash v0.0.6, released August 29, 2017
* **v0.0.5**
* app:font become app:customFont
* Add app:maxFPS (define how many times the gradient should refresh each second)
Latest release
---------------
The most recent release is v0.0.7, released July 20, 2025
To add a dependency using Gradle, add in your **top-level build.gradle**:
```
allprojects {
repositories {
...
maven { url = "https://jitpack.io" }
}
}
```
And then add in your **app build.gradle** :
```
dependencies {
implementation 'com.github.FlutterGenerator:AnimatedGradientTextView:v0.0.7'
}
```
Getting started
---------------
Firstly, don't forget to add this in your **container layout** :
```xml
xmlns:app="http://schemas.android.com/apk/res-auto"
```
Here is an exemple using an **AnimatedGradientTextView**. I just put in my **xml layout** :
```xml
```
All these parameters are optionals. Some explanations :
* **colors** : It must reference an array of colors in **res/values/attr.xml**, for example :
```xml
...
@color/materialRed
@color/materialLime
@color/materialOrange
@color/materialPurple
```
* **simultaneousColors** : The number of colors (of the array) possibly displayed in a same time
* **angle** : The angle of the color gradient
* **speed** : A number in milliseconds. Increase this number will decrease the gradient move speed
* **customFont** : Must be a name of a font located in **assets/fonts** folder
* **maxFPS** : Define how many times the gradient should refresh each second. (Default : 24 FPS)