Change animated text main color to menu text color

This commit is contained in:
Calcitem 2021-07-20 00:16:05 +08:00
parent 3bda00a884
commit 5be602ec31
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
2 changed files with 12 additions and 8 deletions

View File

@ -68,13 +68,6 @@ class AppTheme {
static var navigationHomeScreenBackgroundColor =
UIColors.nearlyWhite; // TODO: no use?
static const animatedTextsColors = [
Colors.black,
Colors.blue,
Colors.yellow,
Colors.red,
];
// Theme
static const sliderThemeData = SliderThemeData(

View File

@ -146,6 +146,17 @@ class _HomeDrawerState extends State<HomeDrawer> {
},
);
var animatedTextsColors = [
Color(Config.drawerTextColor),
Colors.black,
Colors.blue,
Colors.yellow,
Colors.red,
Color(Config.darkBackgroundColor),
Color(Config.boardBackgroundColor),
Color(Config.drawerHighlightItemColor),
];
var animatedTextKit = AnimatedTextKit(
animatedTexts: [
ColorizeAnimatedText(
@ -154,7 +165,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
fontSize: Config.fontSize + 16,
fontWeight: FontWeight.w600,
),
colors: AppTheme.animatedTextsColors,
colors: animatedTextsColors,
textAlign: TextAlign.start,
speed: const Duration(milliseconds: 3000),
),