mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
hide system brightness toggle on desktop for now
This commit is contained in:
parent
33faa07047
commit
ddc3e2191f
1 changed files with 38 additions and 38 deletions
|
@ -111,44 +111,44 @@ class _AppearanceOptionSettings
|
|||
],
|
||||
),
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Divider(
|
||||
thickness: 0.5,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"System brightness",
|
||||
style: STextStyles.desktopTextExtraSmall(context)
|
||||
.copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textDark),
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
SizedBox(
|
||||
height: 20,
|
||||
width: 40,
|
||||
child: DraggableSwitchButton(
|
||||
isOn: ref.watch(
|
||||
prefsChangeNotifierProvider.select(
|
||||
(value) => value.enableSystemBrightness),
|
||||
),
|
||||
onValueChanged: (newValue) {
|
||||
ref
|
||||
.read(prefsChangeNotifierProvider)
|
||||
.enableSystemBrightness = newValue;
|
||||
},
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
// const Padding(
|
||||
// padding: EdgeInsets.all(10.0),
|
||||
// child: Divider(
|
||||
// thickness: 0.5,
|
||||
// ),
|
||||
// ),
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.all(10.0),
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// Text(
|
||||
// "System brightness",
|
||||
// style: STextStyles.desktopTextExtraSmall(context)
|
||||
// .copyWith(
|
||||
// color: Theme.of(context)
|
||||
// .extension<StackColors>()!
|
||||
// .textDark),
|
||||
// textAlign: TextAlign.left,
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: 20,
|
||||
// width: 40,
|
||||
// child: DraggableSwitchButton(
|
||||
// isOn: ref.watch(
|
||||
// prefsChangeNotifierProvider.select(
|
||||
// (value) => value.enableSystemBrightness),
|
||||
// ),
|
||||
// onValueChanged: (newValue) {
|
||||
// ref
|
||||
// .read(prefsChangeNotifierProvider)
|
||||
// .enableSystemBrightness = newValue;
|
||||
// },
|
||||
// ),
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Divider(
|
||||
|
|
Loading…
Reference in a new issue