Skip to content

Commit 898202a

Browse files
committed
style: format misc
1 parent 27fcd01 commit 898202a

34 files changed

+510
-400
lines changed

lib/app_configuration/widgets/ad_platform_config_form.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ class _AdPlatformConfigFormState extends State<AdPlatformConfigForm> {
321321
const SizedBox(height: AppSpacing.lg),
322322
Center(
323323
child: ElevatedButton(
324-
onPressed: () => context.goNamed(Routes.localAdsManagementName),
324+
onPressed: () =>
325+
context.goNamed(Routes.localAdsManagementName),
325326
child: Text(l10n.manageLocalAdsButton),
326327
),
327328
),

lib/local_ads_management/bloc/archive_local_ads/archive_local_ads_bloc.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ class ArchiveLocalAdsBloc
266266
final updatedAd = switch (adToRestore) {
267267
final LocalNativeAd ad => ad.copyWith(status: ContentStatus.active),
268268
final LocalBannerAd ad => ad.copyWith(status: ContentStatus.active),
269-
final LocalInterstitialAd ad => ad.copyWith(status: ContentStatus.active),
269+
final LocalInterstitialAd ad => ad.copyWith(
270+
status: ContentStatus.active,
271+
),
270272
final LocalVideoAd ad => ad.copyWith(status: ContentStatus.active),
271273
_ => throw StateError(
272274
'Unknown LocalAd type: ${adToRestore.runtimeType}',

lib/local_ads_management/bloc/create_local_ads/create_local_ads_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import 'package:equatable/equatable.dart';
44
part 'create_local_ads_event.dart';
55
part 'create_local_ads_state.dart';
66

7-
class CreateLocalAdsBloc extends Bloc<CreateLocalAdsEvent, CreateLocalAdsState> {
7+
class CreateLocalAdsBloc
8+
extends Bloc<CreateLocalAdsEvent, CreateLocalAdsState> {
89
CreateLocalAdsBloc() : super(CreateLocalAdsInitial()) {
910
on<CreateLocalAdsEvent>((event, emit) {
1011
// TODO: implement event handler

lib/local_ads_management/bloc/create_local_ads/create_local_ads_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ part of 'create_local_ads_bloc.dart';
22

33
sealed class CreateLocalAdsState extends Equatable {
44
const CreateLocalAdsState();
5-
5+
66
@override
77
List<Object> get props => [];
88
}

lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_event.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ sealed class CreateLocalBannerAdEvent extends Equatable {
1010
/// {@template create_local_banner_ad_image_url_changed}
1111
/// Event to notify that the image URL of the local banner ad has changed.
1212
/// {@endtemplate}
13-
final class CreateLocalBannerAdImageUrlChanged extends CreateLocalBannerAdEvent {
13+
final class CreateLocalBannerAdImageUrlChanged
14+
extends CreateLocalBannerAdEvent {
1415
/// {@macro create_local_banner_ad_image_url_changed}
1516
const CreateLocalBannerAdImageUrlChanged(this.imageUrl);
1617

@@ -24,7 +25,8 @@ final class CreateLocalBannerAdImageUrlChanged extends CreateLocalBannerAdEvent
2425
/// {@template create_local_banner_ad_target_url_changed}
2526
/// Event to notify that the target URL of the local banner ad has changed.
2627
/// {@endtemplate}
27-
final class CreateLocalBannerAdTargetUrlChanged extends CreateLocalBannerAdEvent {
28+
final class CreateLocalBannerAdTargetUrlChanged
29+
extends CreateLocalBannerAdEvent {
2830
/// {@macro create_local_banner_ad_target_url_changed}
2931
const CreateLocalBannerAdTargetUrlChanged(this.targetUrl);
3032

lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_state.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ class CreateLocalBannerAdState extends Equatable {
7272

7373
@override
7474
List<Object?> get props => [
75-
status,
76-
imageUrl,
77-
targetUrl,
78-
contentStatus,
79-
exception,
80-
createdLocalBannerAd,
81-
];
75+
status,
76+
imageUrl,
77+
targetUrl,
78+
contentStatus,
79+
exception,
80+
createdLocalBannerAd,
81+
];
8282
}

lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ part 'create_local_interstitial_ad_state.dart';
99

1010
/// A BLoC to manage the state of creating a new local interstitial ad.
1111
class CreateLocalInterstitialAdBloc
12-
extends Bloc<CreateLocalInterstitialAdEvent, CreateLocalInterstitialAdState> {
12+
extends
13+
Bloc<CreateLocalInterstitialAdEvent, CreateLocalInterstitialAdState> {
1314
/// {@macro create_local_interstitial_ad_bloc}
1415
CreateLocalInterstitialAdBloc({
1516
required DataRepository<LocalAd> localAdsRepository,

lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_state.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ class CreateLocalInterstitialAdState extends Equatable {
7373

7474
@override
7575
List<Object?> get props => [
76-
status,
77-
imageUrl,
78-
targetUrl,
79-
contentStatus,
80-
exception,
81-
createdLocalInterstitialAd,
82-
];
76+
status,
77+
imageUrl,
78+
targetUrl,
79+
contentStatus,
80+
exception,
81+
createdLocalInterstitialAd,
82+
];
8383
}

lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ final class CreateLocalNativeAdTitleChanged extends CreateLocalNativeAdEvent {
2424
/// {@template create_local_native_ad_subtitle_changed}
2525
/// Event to notify that the subtitle of the local native ad has changed.
2626
/// {@endtemplate}
27-
final class CreateLocalNativeAdSubtitleChanged extends CreateLocalNativeAdEvent {
27+
final class CreateLocalNativeAdSubtitleChanged
28+
extends CreateLocalNativeAdEvent {
2829
/// {@macro create_local_native_ad_subtitle_changed}
2930
const CreateLocalNativeAdSubtitleChanged(this.subtitle);
3031

@@ -38,7 +39,8 @@ final class CreateLocalNativeAdSubtitleChanged extends CreateLocalNativeAdEvent
3839
/// {@template create_local_native_ad_image_url_changed}
3940
/// Event to notify that the image URL of the local native ad has changed.
4041
/// {@endtemplate}
41-
final class CreateLocalNativeAdImageUrlChanged extends CreateLocalNativeAdEvent {
42+
final class CreateLocalNativeAdImageUrlChanged
43+
extends CreateLocalNativeAdEvent {
4244
/// {@macro create_local_native_ad_image_url_changed}
4345
const CreateLocalNativeAdImageUrlChanged(this.imageUrl);
4446

@@ -52,7 +54,8 @@ final class CreateLocalNativeAdImageUrlChanged extends CreateLocalNativeAdEvent
5254
/// {@template create_local_native_ad_target_url_changed}
5355
/// Event to notify that the target URL of the local native ad has changed.
5456
/// {@endtemplate}
55-
final class CreateLocalNativeAdTargetUrlChanged extends CreateLocalNativeAdEvent {
57+
final class CreateLocalNativeAdTargetUrlChanged
58+
extends CreateLocalNativeAdEvent {
5659
/// {@macro create_local_native_ad_target_url_changed}
5760
const CreateLocalNativeAdTargetUrlChanged(this.targetUrl);
5861

lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_state.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ class CreateLocalNativeAdState extends Equatable {
8888

8989
@override
9090
List<Object?> get props => [
91-
status,
92-
title,
93-
subtitle,
94-
imageUrl,
95-
targetUrl,
96-
contentStatus,
97-
exception,
98-
createdLocalNativeAd,
99-
];
91+
status,
92+
title,
93+
subtitle,
94+
imageUrl,
95+
targetUrl,
96+
contentStatus,
97+
exception,
98+
createdLocalNativeAd,
99+
];
100100
}

0 commit comments

Comments
 (0)