mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
button color background
This commit is contained in:
parent
ebc9c15c3d
commit
fac914e4ee
2 changed files with 9 additions and 2 deletions
|
@ -25,10 +25,10 @@ class SettingsMenuItem<T> extends StatelessWidget {
|
|||
style: value == group
|
||||
? Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.getDesktopMenuButtonColorSelected(context)
|
||||
.getDesktopSettingsButtonColor(context)
|
||||
: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.getDesktopMenuButtonColor(context),
|
||||
.getDesktopSettingsButtonColor(context),
|
||||
onPressed: () {
|
||||
onChanged(value);
|
||||
},
|
||||
|
|
|
@ -1501,4 +1501,11 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
textFieldDefaultBG,
|
||||
),
|
||||
);
|
||||
|
||||
ButtonStyle? getDesktopSettingsButtonColor(BuildContext context) =>
|
||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
background,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue