Skip to content

Commit dceb298

Browse files
committed
style: format
1 parent af571af commit dceb298

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

lib/app_configuration/widgets/app_review_settings_form.dart

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:core/core.dart';
22
import 'package:flutter/material.dart';
33
import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/widgets/app_config_form_fields.dart';
4-
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart';
54
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
65
import 'package:ui_kit/ui_kit.dart';
76

@@ -57,8 +56,9 @@ class _AppReviewSettingsFormState extends State<AppReviewSettingsForm> {
5756

5857
void _updateControllers() {
5958
final appReviewConfig = widget.remoteConfig.features.community.appReview;
60-
_interactionCycleThresholdController.text =
61-
appReviewConfig.interactionCycleThreshold.toString();
59+
_interactionCycleThresholdController.text = appReviewConfig
60+
.interactionCycleThreshold
61+
.toString();
6262
_initialPromptCooldownController.text = appReviewConfig
6363
.initialPromptCooldownDays
6464
.toString();
@@ -192,26 +192,28 @@ class _AppReviewSettingsFormState extends State<AppReviewSettingsForm> {
192192
.eligiblePositiveInteractions
193193
.contains(interactionType),
194194
onChanged: (value) {
195-
final currentInteractions = List<
196-
PositiveInteractionType>.from(
197-
appReviewConfig.eligiblePositiveInteractions,
198-
);
195+
final currentInteractions =
196+
List<PositiveInteractionType>.from(
197+
appReviewConfig
198+
.eligiblePositiveInteractions,
199+
);
199200
if (value) {
200201
currentInteractions.add(interactionType);
201202
} else {
202203
currentInteractions.remove(interactionType);
203204
}
204-
final newAppReviewConfig =
205-
appReviewConfig.copyWith(
206-
eligiblePositiveInteractions:
207-
currentInteractions,
208-
);
205+
final newAppReviewConfig = appReviewConfig
206+
.copyWith(
207+
eligiblePositiveInteractions:
208+
currentInteractions,
209+
);
209210
widget.onConfigChanged(
210211
widget.remoteConfig.copyWith(
211212
features: widget.remoteConfig.features
212213
.copyWith(
213214
community: communityConfig.copyWith(
214-
appReview: newAppReviewConfig),
215+
appReview: newAppReviewConfig,
216+
),
215217
),
216218
),
217219
);

0 commit comments

Comments
 (0)