feat(ui): add gear preset shortcuts

This commit is contained in:
2026-04-23 22:37:52 +02:00
parent ddaed084dc
commit 16ac66471a
2 changed files with 132 additions and 7 deletions

View File

@ -806,6 +806,63 @@ class _DeviceDetailsPageState extends ConsumerState<DeviceDetailsPage> {
_isFirmwareUpdateBusy ? null : _loadGearRatios,
onSave: _saveGearRatios,
presets: const [
GearRatioPreset(
name: 'Road',
description:
'Balanced 12-speed road gearing for steady cadence steps.',
ratios: [
0.50,
0.58,
0.67,
0.76,
0.86,
0.97,
1.09,
1.22,
1.36,
1.51,
1.67,
1.84,
],
),
GearRatioPreset(
name: 'Gravel',
description:
'Slightly lower gearing with smooth jumps for mixed terrain rides.',
ratios: [
0.46,
0.54,
0.62,
0.70,
0.79,
0.89,
1.00,
1.12,
1.25,
1.40,
1.57,
1.76,
],
),
GearRatioPreset(
name: 'MTB',
description:
'Lower climbing gears with wider top-end spacing for steep trails.',
ratios: [
0.42,
0.49,
0.57,
0.66,
0.76,
0.87,
1.00,
1.15,
1.32,
1.52,
1.75,
2.02,
],
),
GearRatioPreset(
name: 'KeAnt Classic',
description: