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(
|
// const Padding(
|
||||||
padding: EdgeInsets.all(10.0),
|
// padding: EdgeInsets.all(10.0),
|
||||||
child: Divider(
|
// child: Divider(
|
||||||
thickness: 0.5,
|
// thickness: 0.5,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Padding(
|
// Padding(
|
||||||
padding: const EdgeInsets.all(10.0),
|
// padding: const EdgeInsets.all(10.0),
|
||||||
child: Row(
|
// child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
// children: [
|
||||||
Text(
|
// Text(
|
||||||
"System brightness",
|
// "System brightness",
|
||||||
style: STextStyles.desktopTextExtraSmall(context)
|
// style: STextStyles.desktopTextExtraSmall(context)
|
||||||
.copyWith(
|
// .copyWith(
|
||||||
color: Theme.of(context)
|
// color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
// .extension<StackColors>()!
|
||||||
.textDark),
|
// .textDark),
|
||||||
textAlign: TextAlign.left,
|
// textAlign: TextAlign.left,
|
||||||
),
|
// ),
|
||||||
SizedBox(
|
// SizedBox(
|
||||||
height: 20,
|
// height: 20,
|
||||||
width: 40,
|
// width: 40,
|
||||||
child: DraggableSwitchButton(
|
// child: DraggableSwitchButton(
|
||||||
isOn: ref.watch(
|
// isOn: ref.watch(
|
||||||
prefsChangeNotifierProvider.select(
|
// prefsChangeNotifierProvider.select(
|
||||||
(value) => value.enableSystemBrightness),
|
// (value) => value.enableSystemBrightness),
|
||||||
),
|
// ),
|
||||||
onValueChanged: (newValue) {
|
// onValueChanged: (newValue) {
|
||||||
ref
|
// ref
|
||||||
.read(prefsChangeNotifierProvider)
|
// .read(prefsChangeNotifierProvider)
|
||||||
.enableSystemBrightness = newValue;
|
// .enableSystemBrightness = newValue;
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
)
|
// )
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.all(10.0),
|
padding: EdgeInsets.all(10.0),
|
||||||
child: Divider(
|
child: Divider(
|
||||||
|
|
Loading…
Reference in a new issue