@@ -32,15 +32,31 @@ class SettingsPage extends StatelessWidget {
32
32
child: SafeArea (
33
33
minimum: const EdgeInsets .only (bottom: 8 ),
34
34
child: Column (children: [
35
- SwitchListTile (
36
- title: Text (zulipLocalizations.settingsUseExternal),
37
- value: globalStore.globalSettings.effectiveBrowserPreference == BrowserPreference .external ,
38
- onChanged: (useExternal) {
39
- globalStore.updateGlobalSettings (GlobalSettingsCompanion (
40
- browserPreference: Value (
41
- useExternal ? BrowserPreference .external
42
- : BrowserPreference .embedded)));
43
- }),
35
+ ListTileTheme (
36
+ data: const ListTileThemeData (
37
+ contentPadding: EdgeInsets .symmetric (horizontal: 16 ),
38
+ dense: true ,
39
+ minVerticalPadding: 0 ,
40
+ minTileHeight: 38 ,
41
+
42
+ horizontalTitleGap: 0 ,
43
+ minLeadingWidth: 38 ,
44
+ ),
45
+ child: SwitchListTile (
46
+ title: Text (zulipLocalizations.settingsUseExternal,
47
+ style: const TextStyle (
48
+ fontSize: 17 ,
49
+ height: 26 / 17 ,
50
+ ),
51
+ ),
52
+ value: globalStore.globalSettings.effectiveBrowserPreference == BrowserPreference .external ,
53
+ onChanged: (useExternal) {
54
+ globalStore.updateGlobalSettings (GlobalSettingsCompanion (
55
+ browserPreference: Value (
56
+ useExternal ? BrowserPreference .external
57
+ : BrowserPreference .embedded)));
58
+ }),
59
+ ),
44
60
Theme (
45
61
data: themeData.copyWith (splashColor: Colors .transparent),
46
62
child: _ThemeSetting (initialValue: globalStore.globalSettings.themeSetting)),
0 commit comments