hide system brightness toggle on desktop for now

This commit is contained in:
julian 2023-03-22 13:36:36 -06:00
parent 33faa07047
commit ddc3e2191f

View file

@ -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(