Skip to content

Commit 56296bd

Browse files
committed
lint: misc
1 parent dbb48cb commit 56296bd

File tree

9 files changed

+36
-42
lines changed

9 files changed

+36
-42
lines changed

lib/app_configuration/widgets/article_ad_settings_form.dart

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class _ArticleAdSettingsFormState extends State<ArticleAdSettingsForm>
5454
widget.remoteConfig.copyWith(
5555
adConfig: adConfig.copyWith(
5656
articleAdConfiguration: articleAdConfig.copyWith(
57-
enabled: value,
58-
),
57+
enabled: value,
58+
),
5959
),
6060
),
6161
);
@@ -76,8 +76,8 @@ class _ArticleAdSettingsFormState extends State<ArticleAdSettingsForm>
7676
l10n.defaultInArticleAdTypeSelectionDescription,
7777
style: Theme.of(context).textTheme.bodySmall?.copyWith(
7878
color: Theme.of(
79-
context,
80-
).colorScheme.onSurface.withOpacity(0.7),
79+
context,
80+
).colorScheme.onSurface.withOpacity(0.7),
8181
),
8282
textAlign: TextAlign.start, // Ensure text aligns to start
8383
),
@@ -107,8 +107,8 @@ class _ArticleAdSettingsFormState extends State<ArticleAdSettingsForm>
107107
widget.remoteConfig.copyWith(
108108
adConfig: adConfig.copyWith(
109109
articleAdConfiguration: articleAdConfig.copyWith(
110-
defaultInArticleAdType: newSelection.first,
111-
),
110+
defaultInArticleAdType: newSelection.first,
111+
),
112112
),
113113
),
114114
);
@@ -132,37 +132,37 @@ class _ArticleAdSettingsFormState extends State<ArticleAdSettingsForm>
132132
l10n.inArticleAdSlotPlacementsDescription,
133133
style: Theme.of(context).textTheme.bodySmall?.copyWith(
134134
color: Theme.of(
135-
context,
136-
).colorScheme.onSurface.withOpacity(0.7),
135+
context,
136+
).colorScheme.onSurface.withOpacity(0.7),
137137
),
138138
textAlign: TextAlign.start, // Ensure text aligns to start
139139
),
140140
const SizedBox(height: AppSpacing.lg),
141141
...articleAdConfig.inArticleAdSlotConfigurations.map(
142-
(slotConfig) => SwitchListTile(
143-
title: Text(slotConfig.slotType.l10n(context)),
144-
value: slotConfig.enabled,
145-
onChanged: (value) {
146-
final updatedSlots = articleAdConfig
147-
.inArticleAdSlotConfigurations
148-
.map(
149-
(e) => e.slotType == slotConfig.slotType
150-
? e.copyWith(enabled: value)
151-
: e,
152-
)
153-
.toList();
154-
widget.onConfigChanged(
155-
widget.remoteConfig.copyWith(
156-
adConfig: adConfig.copyWith(
157-
articleAdConfiguration: articleAdConfig.copyWith(
158-
inArticleAdSlotConfigurations: updatedSlots,
159-
),
160-
),
142+
(slotConfig) => SwitchListTile(
143+
title: Text(slotConfig.slotType.l10n(context)),
144+
value: slotConfig.enabled,
145+
onChanged: (value) {
146+
final updatedSlots = articleAdConfig
147+
.inArticleAdSlotConfigurations
148+
.map(
149+
(e) => e.slotType == slotConfig.slotType
150+
? e.copyWith(enabled: value)
151+
: e,
152+
)
153+
.toList();
154+
widget.onConfigChanged(
155+
widget.remoteConfig.copyWith(
156+
adConfig: adConfig.copyWith(
157+
articleAdConfiguration: articleAdConfig.copyWith(
158+
inArticleAdSlotConfigurations: updatedSlots,
161159
),
162-
);
163-
},
164-
),
165-
),
160+
),
161+
),
162+
);
163+
},
164+
),
165+
),
166166
],
167167
),
168168
],

lib/app_configuration/widgets/interstitial_ad_settings_form.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ class _InterstitialAdSettingsFormState extends State<InterstitialAdSettingsForm>
120120
widget.onConfigChanged(
121121
widget.remoteConfig.copyWith(
122122
adConfig: adConfig.copyWith(
123-
interstitialAdConfiguration: interstitialAdConfig
124-
.copyWith(enabled: value),
123+
interstitialAdConfiguration: interstitialAdConfig.copyWith(
124+
enabled: value,
125+
),
125126
),
126127
),
127128
);
@@ -140,8 +141,8 @@ class _InterstitialAdSettingsFormState extends State<InterstitialAdSettingsForm>
140141
l10n.userRoleInterstitialFrequencyDescription,
141142
style: Theme.of(context).textTheme.bodySmall?.copyWith(
142143
color: Theme.of(
143-
context,
144-
).colorScheme.onSurface.withOpacity(0.7),
144+
context,
145+
).colorScheme.onSurface.withOpacity(0.7),
145146
),
146147
textAlign: TextAlign.start,
147148
),

lib/content_management/view/create_headline_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/create_headline/create_headline_bloc.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
8-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
98
import 'package:go_router/go_router.dart';
109
import 'package:ui_kit/ui_kit.dart';
1110

lib/content_management/view/create_source_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/create_source/create_source_bloc.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
8-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
98
import 'package:go_router/go_router.dart';
109
import 'package:ui_kit/ui_kit.dart';
1110

lib/content_management/view/create_topic_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
66
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/create_topic/create_topic_bloc.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
88
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
9-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
109
import 'package:go_router/go_router.dart';
1110
import 'package:ui_kit/ui_kit.dart';
1211

lib/content_management/view/edit_headline_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_headline/edit_headline_bloc.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
8-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
98
import 'package:go_router/go_router.dart';
109
import 'package:ui_kit/ui_kit.dart';
1110

lib/content_management/view/edit_source_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_source/edit_source_bloc.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
8-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
98
import 'package:go_router/go_router.dart';
109
import 'package:ui_kit/ui_kit.dart';
1110

lib/content_management/view/edit_topic_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
66
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_topic/edit_topic_bloc.dart';
77
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
88
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
9-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
109
import 'package:go_router/go_router.dart';
1110
import 'package:ui_kit/ui_kit.dart';
1211

lib/local_ads_management/view/archived_local_ads_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_manage
1212
RestoreLocalAdRequested,
1313
UndoDeleteLocalAdRequested;
1414
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/extensions.dart';
15-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/local_ad_to_ad_type.dart';
1615
import 'package:intl/intl.dart';
1716
import 'package:ui_kit/ui_kit.dart';
1817

0 commit comments

Comments
 (0)