update
This commit is contained in:
@@ -84,6 +84,93 @@ class SettingsScreen extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settings, child) {
|
||||
return SizedBox(
|
||||
width: 300,
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Shake Offset',
|
||||
style: TextStyle(color: ThemeConfig.textColorWhite),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
const Text(
|
||||
'0',
|
||||
style: TextStyle(color: ThemeConfig.textColorGrey),
|
||||
),
|
||||
Expanded(
|
||||
child: Slider(
|
||||
value: settings.shakeOffset,
|
||||
min: 0.0,
|
||||
max: 100.0,
|
||||
divisions: 100,
|
||||
label: settings.shakeOffset.toStringAsFixed(1),
|
||||
activeColor: ThemeConfig.btnActionActive,
|
||||
inactiveColor: ThemeConfig.textColorGrey,
|
||||
onChanged: (value) {
|
||||
settings.setShakeOffset(value);
|
||||
},
|
||||
),
|
||||
),
|
||||
const Text(
|
||||
'100',
|
||||
style: TextStyle(color: ThemeConfig.textColorGrey),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
'Current: ${settings.shakeOffset.toStringAsFixed(1)}',
|
||||
style: const TextStyle(
|
||||
color: ThemeConfig.textColorWhite,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Shake Count',
|
||||
style: TextStyle(color: ThemeConfig.textColorWhite),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
const Text(
|
||||
'1',
|
||||
style: TextStyle(color: ThemeConfig.textColorGrey),
|
||||
),
|
||||
Expanded(
|
||||
child: Slider(
|
||||
value: settings.shakeCount,
|
||||
min: 1.0,
|
||||
max: 10.0,
|
||||
divisions: 9,
|
||||
label: settings.shakeCount.toStringAsFixed(0),
|
||||
activeColor: ThemeConfig.btnActionActive,
|
||||
inactiveColor: ThemeConfig.textColorGrey,
|
||||
onChanged: (value) {
|
||||
settings.setShakeCount(value);
|
||||
},
|
||||
),
|
||||
),
|
||||
const Text(
|
||||
'10',
|
||||
style: TextStyle(color: ThemeConfig.textColorGrey),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
'Current: ${settings.shakeCount.toStringAsFixed(0)}',
|
||||
style: const TextStyle(
|
||||
color: ThemeConfig.textColorWhite,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
// const SizedBox(height: 20),
|
||||
// const Text(
|
||||
|
||||
Reference in New Issue
Block a user