From c7d92cc105a4e7496904805fd2d6ed81b4dec66c Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 9 Jul 2023 12:57:46 +0200 Subject: [PATCH] reduced `SwitchListTile.contentPadding` --- .../general/components/caffeine/widget_list_tile_caffeine.dart | 2 ++ .../general/components/haptics/widget_list_tile_haptics.dart | 2 ++ .../dynamic_color/widget_list_tile_dynamic_color.dart | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lib/screens/settings/components/general/components/caffeine/widget_list_tile_caffeine.dart b/lib/screens/settings/components/general/components/caffeine/widget_list_tile_caffeine.dart index 7de7450..ee0483d 100644 --- a/lib/screens/settings/components/general/components/caffeine/widget_list_tile_caffeine.dart +++ b/lib/screens/settings/components/general/components/caffeine/widget_list_tile_caffeine.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:lightmeter/generated/l10n.dart'; +import 'package:lightmeter/res/dimens.dart'; import 'package:lightmeter/screens/settings/components/general/components/caffeine/bloc_list_tile_caffeine.dart'; @@ -15,6 +16,7 @@ class CaffeineListTile extends StatelessWidget { title: Text(S.of(context).keepScreenOn), value: state, onChanged: context.read().onCaffeineChanged, + contentPadding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM), ), ); } diff --git a/lib/screens/settings/components/general/components/haptics/widget_list_tile_haptics.dart b/lib/screens/settings/components/general/components/haptics/widget_list_tile_haptics.dart index a33b1ce..ec7ec60 100644 --- a/lib/screens/settings/components/general/components/haptics/widget_list_tile_haptics.dart +++ b/lib/screens/settings/components/general/components/haptics/widget_list_tile_haptics.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:lightmeter/generated/l10n.dart'; +import 'package:lightmeter/res/dimens.dart'; import 'package:lightmeter/screens/settings/components/general/components/haptics/bloc_list_tile_haptics.dart'; @@ -15,6 +16,7 @@ class HapticsListTile extends StatelessWidget { title: Text(S.of(context).haptics), value: state, onChanged: context.read().onHapticsChanged, + contentPadding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM), ), ); } diff --git a/lib/screens/settings/components/theme/components/dynamic_color/widget_list_tile_dynamic_color.dart b/lib/screens/settings/components/theme/components/dynamic_color/widget_list_tile_dynamic_color.dart index f15186e..d230f63 100644 --- a/lib/screens/settings/components/theme/components/dynamic_color/widget_list_tile_dynamic_color.dart +++ b/lib/screens/settings/components/theme/components/dynamic_color/widget_list_tile_dynamic_color.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:lightmeter/data/models/dynamic_colors_state.dart'; import 'package:lightmeter/generated/l10n.dart'; import 'package:lightmeter/providers/theme_provider.dart'; +import 'package:lightmeter/res/dimens.dart'; import 'package:lightmeter/utils/inherited_generics.dart'; class DynamicColorListTile extends StatelessWidget { @@ -14,6 +15,7 @@ class DynamicColorListTile extends StatelessWidget { title: Text(S.of(context).dynamicColor), value: context.listen() == DynamicColorState.enabled, onChanged: ThemeProvider.of(context).enableDynamicColor, + contentPadding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM), ); } }