clean up colors
This commit is contained in:
parent
f324e43be3
commit
d077d9a293
|
@ -23,7 +23,8 @@ final available = [
|
||||||
|
|
||||||
ThemeData getTheme(CustomColors colors) {
|
ThemeData getTheme(CustomColors colors) {
|
||||||
return ThemeData(
|
return ThemeData(
|
||||||
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||||
|
hoverColor: colors.colorScheme.onSurface,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
enableFeedback: false,
|
enableFeedback: false,
|
||||||
hoverElevation: 24,
|
hoverElevation: 24,
|
||||||
|
@ -76,6 +77,16 @@ ThemeData getTheme(CustomColors colors) {
|
||||||
),
|
),
|
||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
|
foregroundColor: MaterialStateProperty.resolveWith((states) {
|
||||||
|
if (states.contains(MaterialState.disabled)) {
|
||||||
|
return colors.colorScheme.surface;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}),
|
||||||
|
backgroundColor: MaterialStateProperty.resolveWith((states) {
|
||||||
|
if (states.contains(MaterialState.disabled)) return colors.hintColor;
|
||||||
|
return null;
|
||||||
|
}),
|
||||||
textStyle: MaterialStateProperty.resolveWith((states) =>
|
textStyle: MaterialStateProperty.resolveWith((states) =>
|
||||||
const TextStyle(
|
const TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
|
|
Loading…
Reference in New Issue