@@ -159,22 +159,29 @@ class _SettingsView extends StatelessWidget {
159
159
children: [
160
160
ExpansionTile (
161
161
title: Text (l10n.themeSettingsLabel),
162
+ childrenPadding:
163
+ const EdgeInsets .symmetric (
164
+ horizontal: AppSpacing .xxl,
165
+ ),
162
166
children: [
163
167
_buildSettingSection (
164
168
context,
165
169
title: l10n.baseThemeLabel,
166
- description: l10n.baseThemeDescription,
170
+ description:
171
+ l10n.baseThemeDescription,
167
172
child: DropdownButton <AppBaseTheme >(
168
173
value: userAppSettings
169
174
.displaySettings
170
175
.baseTheme,
171
176
onChanged: (value) {
172
177
if (value != null ) {
173
- context.read <SettingsBloc >().add (
174
- SettingsBaseThemeChanged (
175
- value,
176
- ),
177
- );
178
+ context
179
+ .read <SettingsBloc >()
180
+ .add (
181
+ SettingsBaseThemeChanged (
182
+ value,
183
+ ),
184
+ );
178
185
}
179
186
},
180
187
items: AppBaseTheme .values
@@ -232,22 +239,29 @@ class _SettingsView extends StatelessWidget {
232
239
),
233
240
ExpansionTile (
234
241
title: Text (l10n.fontSettingsLabel),
242
+ childrenPadding:
243
+ const EdgeInsets .symmetric (
244
+ horizontal: AppSpacing .xxl,
245
+ ),
235
246
children: [
236
247
_buildSettingSection (
237
248
context,
238
249
title: l10n.fontFamilyLabel,
239
- description: l10n.fontFamilyDescription,
250
+ description:
251
+ l10n.fontFamilyDescription,
240
252
child: DropdownButton <String >(
241
253
value: userAppSettings
242
254
.displaySettings
243
255
.fontFamily,
244
256
onChanged: (value) {
245
257
if (value != null ) {
246
- context.read <SettingsBloc >().add (
247
- SettingsFontFamilyChanged (
248
- value,
249
- ),
250
- );
258
+ context
259
+ .read <SettingsBloc >()
260
+ .add (
261
+ SettingsFontFamilyChanged (
262
+ value,
263
+ ),
264
+ );
251
265
}
252
266
},
253
267
items: _supportedFontFamilies
@@ -305,18 +319,21 @@ class _SettingsView extends StatelessWidget {
305
319
_buildSettingSection (
306
320
context,
307
321
title: l10n.fontWeightLabel,
308
- description: l10n.fontWeightDescription,
322
+ description:
323
+ l10n.fontWeightDescription,
309
324
child: DropdownButton <AppFontWeight >(
310
325
value: userAppSettings
311
326
.displaySettings
312
327
.fontWeight,
313
328
onChanged: (value) {
314
329
if (value != null ) {
315
- context.read <SettingsBloc >().add (
316
- SettingsFontWeightChanged (
317
- value,
318
- ),
319
- );
330
+ context
331
+ .read <SettingsBloc >()
332
+ .add (
333
+ SettingsFontWeightChanged (
334
+ value,
335
+ ),
336
+ );
320
337
}
321
338
},
322
339
items: AppFontWeight .values
@@ -367,7 +384,8 @@ class _SettingsView extends StatelessWidget {
367
384
_getLanguageName (lang, l10n),
368
385
),
369
386
),
370
- ).toList (), // Added .toList() here
387
+ )
388
+ .toList (),
371
389
isExpanded: true ,
372
390
),
373
391
),
0 commit comments