format
This commit is contained in:
+3
-1
@@ -220,7 +220,9 @@ class _CooldownSection extends HookConsumerWidget {
|
||||
value: settings.intervalMs
|
||||
.clamp(minGestureIntervalMs, maxGestureIntervalMs)
|
||||
.toDouble(),
|
||||
label: settings.intervalMs == 0 ? 'Off' : '${settings.intervalMs} ms',
|
||||
label: settings.intervalMs == 0
|
||||
? 'Off'
|
||||
: '${settings.intervalMs} ms',
|
||||
onChanged: (value) async {
|
||||
await ref
|
||||
.read(gestureSettingsRepositoryProvider.notifier)
|
||||
|
||||
+3
-2
@@ -141,8 +141,9 @@ class _SuggestAfterSection extends HookConsumerWidget {
|
||||
await ref
|
||||
.read(gestureSettingsRepositoryProvider.notifier)
|
||||
.updateSettings(
|
||||
(current) =>
|
||||
current.copyWith.minSuggestionStroke(value.round()),
|
||||
(current) => current.copyWith.minSuggestionStroke(
|
||||
value.round(),
|
||||
),
|
||||
);
|
||||
}
|
||||
: null,
|
||||
|
||||
@@ -78,10 +78,7 @@ class _GestureActionPicker extends StatelessWidget {
|
||||
padding: const EdgeInsets.fromLTRB(24, 0, 24, 8),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(
|
||||
'Choose action',
|
||||
style: theme.textTheme.titleLarge,
|
||||
),
|
||||
child: Text('Choose action', style: theme.textTheme.titleLarge),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
|
||||
@@ -65,11 +65,7 @@ class GestureStrokeView extends StatelessWidget {
|
||||
if (showQualifiers) ...[
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 6),
|
||||
child: Icon(
|
||||
stroke.startPosition.icon,
|
||||
size: 18,
|
||||
color: foreground,
|
||||
),
|
||||
child: Icon(stroke.startPosition.icon, size: 18, color: foreground),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 6),
|
||||
|
||||
Reference in New Issue
Block a user