|
@@ -15,10 +15,12 @@ class AFThemeExtension extends ThemeExtension<AFThemeExtension> {
|
|
final Color tint8;
|
|
final Color tint8;
|
|
final Color tint9;
|
|
final Color tint9;
|
|
|
|
|
|
|
|
+ final Color textColor;
|
|
final Color greyHover;
|
|
final Color greyHover;
|
|
final Color greySelect;
|
|
final Color greySelect;
|
|
final Color lightGreyHover;
|
|
final Color lightGreyHover;
|
|
final Color toggleOffFill;
|
|
final Color toggleOffFill;
|
|
|
|
+ final Color progressBarBGcolor;
|
|
|
|
|
|
final TextStyle code;
|
|
final TextStyle code;
|
|
final TextStyle callout;
|
|
final TextStyle callout;
|
|
@@ -40,9 +42,11 @@ class AFThemeExtension extends ThemeExtension<AFThemeExtension> {
|
|
required this.greySelect,
|
|
required this.greySelect,
|
|
required this.lightGreyHover,
|
|
required this.lightGreyHover,
|
|
required this.toggleOffFill,
|
|
required this.toggleOffFill,
|
|
|
|
+ required this.textColor,
|
|
required this.code,
|
|
required this.code,
|
|
required this.callout,
|
|
required this.callout,
|
|
required this.caption,
|
|
required this.caption,
|
|
|
|
+ required this.progressBarBGcolor,
|
|
});
|
|
});
|
|
|
|
|
|
static AFThemeExtension of(BuildContext context) {
|
|
static AFThemeExtension of(BuildContext context) {
|
|
@@ -62,10 +66,12 @@ class AFThemeExtension extends ThemeExtension<AFThemeExtension> {
|
|
Color? tint7,
|
|
Color? tint7,
|
|
Color? tint8,
|
|
Color? tint8,
|
|
Color? tint9,
|
|
Color? tint9,
|
|
|
|
+ Color? textColor,
|
|
Color? greyHover,
|
|
Color? greyHover,
|
|
Color? greySelect,
|
|
Color? greySelect,
|
|
Color? lightGreyHover,
|
|
Color? lightGreyHover,
|
|
Color? toggleOffFill,
|
|
Color? toggleOffFill,
|
|
|
|
+ Color? progressBarBGcolor,
|
|
TextStyle? code,
|
|
TextStyle? code,
|
|
TextStyle? callout,
|
|
TextStyle? callout,
|
|
TextStyle? caption,
|
|
TextStyle? caption,
|
|
@@ -82,10 +88,12 @@ class AFThemeExtension extends ThemeExtension<AFThemeExtension> {
|
|
tint7: tint7 ?? this.tint7,
|
|
tint7: tint7 ?? this.tint7,
|
|
tint8: tint8 ?? this.tint8,
|
|
tint8: tint8 ?? this.tint8,
|
|
tint9: tint9 ?? this.tint9,
|
|
tint9: tint9 ?? this.tint9,
|
|
|
|
+ textColor: textColor ?? this.textColor,
|
|
greyHover: greyHover ?? this.greyHover,
|
|
greyHover: greyHover ?? this.greyHover,
|
|
greySelect: greySelect ?? this.greySelect,
|
|
greySelect: greySelect ?? this.greySelect,
|
|
lightGreyHover: lightGreyHover ?? this.lightGreyHover,
|
|
lightGreyHover: lightGreyHover ?? this.lightGreyHover,
|
|
toggleOffFill: toggleOffFill ?? this.toggleOffFill,
|
|
toggleOffFill: toggleOffFill ?? this.toggleOffFill,
|
|
|
|
+ progressBarBGcolor: progressBarBGcolor ?? this.progressBarBGcolor,
|
|
code: code ?? this.code,
|
|
code: code ?? this.code,
|
|
callout: callout ?? this.callout,
|
|
callout: callout ?? this.callout,
|
|
caption: caption ?? this.caption,
|
|
caption: caption ?? this.caption,
|
|
@@ -110,10 +118,13 @@ class AFThemeExtension extends ThemeExtension<AFThemeExtension> {
|
|
tint7: Color.lerp(tint7, other.tint7, t)!,
|
|
tint7: Color.lerp(tint7, other.tint7, t)!,
|
|
tint8: Color.lerp(tint8, other.tint8, t)!,
|
|
tint8: Color.lerp(tint8, other.tint8, t)!,
|
|
tint9: Color.lerp(tint9, other.tint9, t)!,
|
|
tint9: Color.lerp(tint9, other.tint9, t)!,
|
|
|
|
+ textColor: Color.lerp(textColor, other.textColor, t)!,
|
|
greyHover: Color.lerp(greyHover, other.greyHover, t)!,
|
|
greyHover: Color.lerp(greyHover, other.greyHover, t)!,
|
|
greySelect: Color.lerp(greySelect, other.greySelect, t)!,
|
|
greySelect: Color.lerp(greySelect, other.greySelect, t)!,
|
|
lightGreyHover: Color.lerp(lightGreyHover, other.lightGreyHover, t)!,
|
|
lightGreyHover: Color.lerp(lightGreyHover, other.lightGreyHover, t)!,
|
|
toggleOffFill: Color.lerp(toggleOffFill, other.toggleOffFill, t)!,
|
|
toggleOffFill: Color.lerp(toggleOffFill, other.toggleOffFill, t)!,
|
|
|
|
+ progressBarBGcolor:
|
|
|
|
+ Color.lerp(progressBarBGcolor, other.progressBarBGcolor, t)!,
|
|
code: other.code,
|
|
code: other.code,
|
|
callout: other.callout,
|
|
callout: other.callout,
|
|
caption: other.caption,
|
|
caption: other.caption,
|