reverseElevatedButtonThemeData property
ElevatedButtonThemeData
get
reverseElevatedButtonThemeData
Implementation
ElevatedButtonThemeData get reverseElevatedButtonThemeData {
return ElevatedButtonThemeData(
style: elevatedButtonThemeData.style?.copyWith(
foregroundColor: MaterialStateProperty.resolveWith<Color?>(
(states) {
if (states.contains(MaterialState.disabled)) {
return kTheme.primary0;
}
return kTheme.accent500;
},
),
iconColor: MaterialStateProperty.resolveWith<Color?>(
(states) {
if (states.contains(MaterialState.disabled)) {
return kTheme.primary0;
}
return kTheme.accent500;
},
),
backgroundColor: MaterialStateProperty.resolveWith<Color?>((states) {
if (states.contains(MaterialState.disabled)) {
return kTheme.primary200;
}
return kTheme.secondary;
}),
),
);
}