1
+ import 'package:core/core.dart' ;
1
2
import 'package:flutter/material.dart' ;
2
3
import 'package:flutter_bloc/flutter_bloc.dart' ;
3
- import 'package:ht_dashboard/app_configuration/bloc/app_configuration_bloc.dart' ;
4
- import 'package:ht_dashboard/l10n/app_localizations.dart' ;
5
- import 'package:ht_dashboard/l10n/l10n.dart' ;
6
- import 'package:ht_shared/ht_shared.dart' ;
7
- import 'package:ht_ui_kit/ht_ui_kit.dart' ;
4
+ import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/bloc/app_configuration_bloc.dart' ;
5
+ import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart' ;
6
+ import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
7
+ import 'package:ui_kit/ui_kit.dart' ;
8
8
9
9
/// {@template app_configuration_page}
10
10
/// A page for managing the application's remote configuration.
@@ -176,9 +176,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
176
176
childrenPadding: const EdgeInsets .symmetric (
177
177
horizontal: AppSpacing .xxl,
178
178
),
179
- children: [
180
- _buildAdConfigSection (context, remoteConfig),
181
- ],
179
+ children: [_buildAdConfigSection (context, remoteConfig)],
182
180
),
183
181
],
184
182
),
@@ -316,9 +314,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
316
314
remoteConfig: remoteConfig,
317
315
onConfigChanged: (newConfig) {
318
316
context.read <AppConfigurationBloc >().add (
319
- AppConfigurationFieldChanged (
320
- remoteConfig: newConfig,
321
- ),
317
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
322
318
);
323
319
},
324
320
buildIntField: _buildIntField,
@@ -336,9 +332,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
336
332
remoteConfig: remoteConfig,
337
333
onConfigChanged: (newConfig) {
338
334
context.read <AppConfigurationBloc >().add (
339
- AppConfigurationFieldChanged (
340
- remoteConfig: newConfig,
341
- ),
335
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
342
336
);
343
337
},
344
338
buildIntField: _buildIntField,
@@ -356,9 +350,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
356
350
remoteConfig: remoteConfig,
357
351
onConfigChanged: (newConfig) {
358
352
context.read <AppConfigurationBloc >().add (
359
- AppConfigurationFieldChanged (
360
- remoteConfig: newConfig,
361
- ),
353
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
362
354
);
363
355
},
364
356
buildIntField: _buildIntField,
@@ -395,9 +387,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
395
387
remoteConfig: remoteConfig,
396
388
onConfigChanged: (newConfig) {
397
389
context.read <AppConfigurationBloc >().add (
398
- AppConfigurationFieldChanged (
399
- remoteConfig: newConfig,
400
- ),
390
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
401
391
);
402
392
},
403
393
buildIntField: _buildIntField,
@@ -415,9 +405,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
415
405
remoteConfig: remoteConfig,
416
406
onConfigChanged: (newConfig) {
417
407
context.read <AppConfigurationBloc >().add (
418
- AppConfigurationFieldChanged (
419
- remoteConfig: newConfig,
420
- ),
408
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
421
409
);
422
410
},
423
411
buildIntField: _buildIntField,
@@ -435,9 +423,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
435
423
remoteConfig: remoteConfig,
436
424
onConfigChanged: (newConfig) {
437
425
context.read <AppConfigurationBloc >().add (
438
- AppConfigurationFieldChanged (
439
- remoteConfig: newConfig,
440
- ),
426
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
441
427
);
442
428
},
443
429
buildIntField: _buildIntField,
@@ -474,9 +460,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
474
460
remoteConfig: remoteConfig,
475
461
onConfigChanged: (newConfig) {
476
462
context.read <AppConfigurationBloc >().add (
477
- AppConfigurationFieldChanged (
478
- remoteConfig: newConfig,
479
- ),
463
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
480
464
);
481
465
},
482
466
buildIntField: _buildIntField,
@@ -494,9 +478,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
494
478
remoteConfig: remoteConfig,
495
479
onConfigChanged: (newConfig) {
496
480
context.read <AppConfigurationBloc >().add (
497
- AppConfigurationFieldChanged (
498
- remoteConfig: newConfig,
499
- ),
481
+ AppConfigurationFieldChanged (remoteConfig: newConfig),
500
482
);
501
483
},
502
484
buildIntField: _buildIntField,
@@ -659,10 +641,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
659
641
child: Column (
660
642
crossAxisAlignment: CrossAxisAlignment .start,
661
643
children: [
662
- Text (
663
- label,
664
- style: Theme .of (context).textTheme.titleMedium,
665
- ),
644
+ Text (label, style: Theme .of (context).textTheme.titleMedium),
666
645
const SizedBox (height: AppSpacing .xs),
667
646
Text (
668
647
description,
@@ -704,10 +683,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
704
683
child: Column (
705
684
crossAxisAlignment: CrossAxisAlignment .start,
706
685
children: [
707
- Text (
708
- label,
709
- style: Theme .of (context).textTheme.titleMedium,
710
- ),
686
+ Text (label, style: Theme .of (context).textTheme.titleMedium),
711
687
const SizedBox (height: AppSpacing .xs),
712
688
Text (
713
689
description,
@@ -1326,9 +1302,7 @@ class _AccountActionConfigFormState extends State<_AccountActionConfigForm> {
1326
1302
return widget.buildIntField (
1327
1303
context,
1328
1304
label: '$localizedActionType ${l10n .daysSuffix }' ,
1329
- description: l10n.daysBetweenPromptDescription (
1330
- localizedActionType,
1331
- ),
1305
+ description: l10n.daysBetweenPromptDescription (localizedActionType),
1332
1306
value: _getDaysMap (accountActionConfig)[actionType] ?? 0 ,
1333
1307
onChanged: (value) {
1334
1308
final currentMap = Map <FeedActionType , int >.from (
0 commit comments