|
@@ -30,6 +30,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
static const _color1B61CA = Color(0X4D1B61CA);
|
|
static const _color1B61CA = Color(0X4D1B61CA);
|
|
static const _color8B96BA = Color(0xFF8B96BA);
|
|
static const _color8B96BA = Color(0xFF8B96BA);
|
|
static const _colorB4C5FF = Color(0xFFB4C5FF);
|
|
static const _colorB4C5FF = Color(0xFFB4C5FF);
|
|
|
|
+ static const _colorFE4066 = Color(0xFFFE4066);
|
|
|
|
|
|
//暗色主题的一些自定义颜色值
|
|
//暗色主题的一些自定义颜色值
|
|
static const _darkBlackBg = Color(0xFF0F0F0F);
|
|
static const _darkBlackBg = Color(0xFF0F0F0F);
|
|
@@ -68,6 +69,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
final Color tabLightBlueShadow; //Tab的淡蓝色阴影
|
|
final Color tabLightBlueShadow; //Tab的淡蓝色阴影
|
|
final Color textLightPurple; //文本淡紫色
|
|
final Color textLightPurple; //文本淡紫色
|
|
final Color avatarBg; //头像框的淡蓝色
|
|
final Color avatarBg; //头像框的淡蓝色
|
|
|
|
+ final Color deleteRed; //删除的红色
|
|
|
|
|
|
// 私有的构造函数
|
|
// 私有的构造函数
|
|
const AppColorsTheme._internal({
|
|
const AppColorsTheme._internal({
|
|
@@ -99,6 +101,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
required this.tabTextUnSelectedDefault,
|
|
required this.tabTextUnSelectedDefault,
|
|
required this.textLightPurple,
|
|
required this.textLightPurple,
|
|
required this.avatarBg,
|
|
required this.avatarBg,
|
|
|
|
+ required this.deleteRed,
|
|
});
|
|
});
|
|
|
|
|
|
// 浅色主题工厂方法
|
|
// 浅色主题工厂方法
|
|
@@ -132,6 +135,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
tabTextUnSelectedDefault: Colors.black,
|
|
tabTextUnSelectedDefault: Colors.black,
|
|
textLightPurple: _color8B96BA,
|
|
textLightPurple: _color8B96BA,
|
|
avatarBg: _colorB4C5FF,
|
|
avatarBg: _colorB4C5FF,
|
|
|
|
+ deleteRed: _colorFE4066,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -166,6 +170,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
tabTextUnSelectedDefault: _darkBlackItemLightMost,
|
|
tabTextUnSelectedDefault: _darkBlackItemLightMost,
|
|
textLightPurple: Colors.white,
|
|
textLightPurple: Colors.white,
|
|
avatarBg: _darkBlackItemLight,
|
|
avatarBg: _darkBlackItemLight,
|
|
|
|
+ deleteRed: Colors.white,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -209,6 +214,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
tabTextUnSelectedDefault: Color.lerp(tabTextUnSelectedDefault, other.tabTextUnSelectedDefault, t)!,
|
|
tabTextUnSelectedDefault: Color.lerp(tabTextUnSelectedDefault, other.tabTextUnSelectedDefault, t)!,
|
|
textLightPurple: Color.lerp(textLightPurple, other.textLightPurple, t)!,
|
|
textLightPurple: Color.lerp(textLightPurple, other.textLightPurple, t)!,
|
|
avatarBg: Color.lerp(avatarBg, other.avatarBg, t)!,
|
|
avatarBg: Color.lerp(avatarBg, other.avatarBg, t)!,
|
|
|
|
+ deleteRed: Color.lerp(deleteRed, other.deleteRed, t)!,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|