diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_bloc.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_bloc.dart index a90b42ce..c20e3985 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_bloc.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_bloc.dart @@ -17,7 +17,6 @@ class CreateLocalBannerAdBloc super(const CreateLocalBannerAdState()) { on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); } @@ -38,18 +37,6 @@ class CreateLocalBannerAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - CreateLocalBannerAdStatusChanged event, - Emitter emit, - ) { - emit( - state.copyWith( - contentStatus: event.status, - status: CreateLocalBannerAdStatus.initial, - ), - ); - } - Future _onSubmitted( CreateLocalBannerAdSubmitted event, Emitter emit, @@ -65,7 +52,7 @@ class CreateLocalBannerAdBloc targetUrl: state.targetUrl, createdAt: now, updatedAt: now, - status: state.contentStatus, + status: ContentStatus.active, // Set status to active on creation ); await _localAdsRepository.create(item: newLocalBannerAd); diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_event.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_event.dart index 7833369b..b2bf4abe 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_event.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_event.dart @@ -37,20 +37,6 @@ final class CreateLocalBannerAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template create_local_banner_ad_status_changed} -/// Event to notify that the content status of the local banner ad has changed. -/// {@endtemplate} -final class CreateLocalBannerAdStatusChanged extends CreateLocalBannerAdEvent { - /// {@macro create_local_banner_ad_status_changed} - const CreateLocalBannerAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template create_local_banner_ad_submitted} /// Event to request submission of the new local banner ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_state.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_state.dart index 8a4e1c3a..b2c12c95 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_state.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_banner_ad_state.dart @@ -25,7 +25,6 @@ class CreateLocalBannerAdState extends Equatable { this.status = CreateLocalBannerAdStatus.initial, this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.createdLocalBannerAd, }); @@ -39,9 +38,6 @@ class CreateLocalBannerAdState extends Equatable { /// The target URL of the local banner ad. final String targetUrl; - /// The content status of the local banner ad. - final ContentStatus contentStatus; - /// The exception encountered during form submission, if any. final HttpException? exception; @@ -56,7 +52,6 @@ class CreateLocalBannerAdState extends Equatable { CreateLocalBannerAdStatus? status, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalBannerAd? createdLocalBannerAd, }) { @@ -64,7 +59,6 @@ class CreateLocalBannerAdState extends Equatable { status: status ?? this.status, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception ?? this.exception, createdLocalBannerAd: createdLocalBannerAd ?? this.createdLocalBannerAd, ); @@ -75,7 +69,6 @@ class CreateLocalBannerAdState extends Equatable { status, imageUrl, targetUrl, - contentStatus, exception, createdLocalBannerAd, ]; diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart index 7dbc53a3..93c7bb63 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart @@ -18,7 +18,6 @@ class CreateLocalInterstitialAdBloc super(const CreateLocalInterstitialAdState()) { on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); } @@ -39,18 +38,6 @@ class CreateLocalInterstitialAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - CreateLocalInterstitialAdStatusChanged event, - Emitter emit, - ) { - emit( - state.copyWith( - contentStatus: event.status, - status: CreateLocalInterstitialAdStatus.initial, - ), - ); - } - Future _onSubmitted( CreateLocalInterstitialAdSubmitted event, Emitter emit, @@ -66,7 +53,7 @@ class CreateLocalInterstitialAdBloc targetUrl: state.targetUrl, createdAt: now, updatedAt: now, - status: state.contentStatus, + status: ContentStatus.active, // Set status to active on creation ); await _localAdsRepository.create(item: newLocalInterstitialAd); diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_event.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_event.dart index 414d2477..63f2b287 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_event.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_event.dart @@ -37,21 +37,6 @@ final class CreateLocalInterstitialAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template create_local_interstitial_ad_status_changed} -/// Event to notify that the content status of the local interstitial ad has changed. -/// {@endtemplate} -final class CreateLocalInterstitialAdStatusChanged - extends CreateLocalInterstitialAdEvent { - /// {@macro create_local_interstitial_ad_status_changed} - const CreateLocalInterstitialAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template create_local_interstitial_ad_submitted} /// Event to request submission of the new local interstitial ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_state.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_state.dart index 0e66bb93..d21f6364 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_state.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_state.dart @@ -25,7 +25,6 @@ class CreateLocalInterstitialAdState extends Equatable { this.status = CreateLocalInterstitialAdStatus.initial, this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.createdLocalInterstitialAd, }); @@ -39,9 +38,6 @@ class CreateLocalInterstitialAdState extends Equatable { /// The target URL of the local interstitial ad. final String targetUrl; - /// The content status of the local interstitial ad. - final ContentStatus contentStatus; - /// The exception encountered during form submission, if any. final HttpException? exception; @@ -56,7 +52,6 @@ class CreateLocalInterstitialAdState extends Equatable { CreateLocalInterstitialAdStatus? status, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalInterstitialAd? createdLocalInterstitialAd, }) { @@ -64,7 +59,6 @@ class CreateLocalInterstitialAdState extends Equatable { status: status ?? this.status, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception ?? this.exception, createdLocalInterstitialAd: createdLocalInterstitialAd ?? this.createdLocalInterstitialAd, @@ -76,7 +70,6 @@ class CreateLocalInterstitialAdState extends Equatable { status, imageUrl, targetUrl, - contentStatus, exception, createdLocalInterstitialAd, ]; diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_bloc.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_bloc.dart index 501596a5..645e8618 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_bloc.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_bloc.dart @@ -19,7 +19,6 @@ class CreateLocalNativeAdBloc on(_onSubtitleChanged); on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); } @@ -54,18 +53,6 @@ class CreateLocalNativeAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - CreateLocalNativeAdStatusChanged event, - Emitter emit, - ) { - emit( - state.copyWith( - contentStatus: event.status, - status: CreateLocalNativeAdStatus.initial, - ), - ); - } - Future _onSubmitted( CreateLocalNativeAdSubmitted event, Emitter emit, @@ -83,7 +70,7 @@ class CreateLocalNativeAdBloc targetUrl: state.targetUrl, createdAt: now, updatedAt: now, - status: state.contentStatus, + status: ContentStatus.active, // Set status to active on creation ); await _localAdsRepository.create(item: newLocalNativeAd); diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart index 51990a41..edbc2d68 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart @@ -66,20 +66,6 @@ final class CreateLocalNativeAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template create_local_native_ad_status_changed} -/// Event to notify that the content status of the local native ad has changed. -/// {@endtemplate} -final class CreateLocalNativeAdStatusChanged extends CreateLocalNativeAdEvent { - /// {@macro create_local_native_ad_status_changed} - const CreateLocalNativeAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template create_local_native_ad_submitted} /// Event to request submission of the new local native ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_state.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_state.dart index 9d835ec8..350b70a4 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_state.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_state.dart @@ -27,7 +27,6 @@ class CreateLocalNativeAdState extends Equatable { this.subtitle = '', this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.createdLocalNativeAd, }); @@ -47,9 +46,6 @@ class CreateLocalNativeAdState extends Equatable { /// The target URL of the local native ad. final String targetUrl; - /// The content status of the local native ad. - final ContentStatus contentStatus; - /// The exception encountered during form submission, if any. final HttpException? exception; @@ -70,7 +66,6 @@ class CreateLocalNativeAdState extends Equatable { String? subtitle, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalNativeAd? createdLocalNativeAd, }) { @@ -80,7 +75,6 @@ class CreateLocalNativeAdState extends Equatable { subtitle: subtitle ?? this.subtitle, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception ?? this.exception, createdLocalNativeAd: createdLocalNativeAd ?? this.createdLocalNativeAd, ); @@ -93,7 +87,6 @@ class CreateLocalNativeAdState extends Equatable { subtitle, imageUrl, targetUrl, - contentStatus, exception, createdLocalNativeAd, ]; diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_bloc.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_bloc.dart index ce57895c..93cc1d19 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_bloc.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_bloc.dart @@ -17,7 +17,6 @@ class CreateLocalVideoAdBloc super(const CreateLocalVideoAdState()) { on(_onVideoUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); } @@ -38,18 +37,6 @@ class CreateLocalVideoAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - CreateLocalVideoAdStatusChanged event, - Emitter emit, - ) { - emit( - state.copyWith( - contentStatus: event.status, - status: CreateLocalVideoAdStatus.initial, - ), - ); - } - Future _onSubmitted( CreateLocalVideoAdSubmitted event, Emitter emit, @@ -65,7 +52,7 @@ class CreateLocalVideoAdBloc targetUrl: state.targetUrl, createdAt: now, updatedAt: now, - status: state.contentStatus, + status: ContentStatus.active, // Set status to active on creation ); await _localAdsRepository.create(item: newLocalVideoAd); diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_event.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_event.dart index 916253c8..0d15bc5a 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_event.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_event.dart @@ -35,20 +35,6 @@ final class CreateLocalVideoAdTargetUrlChanged extends CreateLocalVideoAdEvent { List get props => [targetUrl]; } -/// {@template create_local_video_ad_status_changed} -/// Event to notify that the content status of the local video ad has changed. -/// {@endtemplate} -final class CreateLocalVideoAdStatusChanged extends CreateLocalVideoAdEvent { - /// {@macro create_local_video_ad_status_changed} - const CreateLocalVideoAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template create_local_video_ad_submitted} /// Event to request submission of the new local video ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_state.dart b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_state.dart index b3f6e079..b68030fb 100644 --- a/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_state.dart +++ b/lib/local_ads_management/bloc/create_local_ads/create_local_video_ad_state.dart @@ -25,7 +25,6 @@ class CreateLocalVideoAdState extends Equatable { this.status = CreateLocalVideoAdStatus.initial, this.videoUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.createdLocalVideoAd, }); @@ -39,9 +38,6 @@ class CreateLocalVideoAdState extends Equatable { /// The target URL of the local video ad. final String targetUrl; - /// The content status of the local video ad. - final ContentStatus contentStatus; - /// The exception encountered during form submission, if any. final HttpException? exception; @@ -56,7 +52,6 @@ class CreateLocalVideoAdState extends Equatable { CreateLocalVideoAdStatus? status, String? videoUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalVideoAd? createdLocalVideoAd, }) { @@ -64,7 +59,6 @@ class CreateLocalVideoAdState extends Equatable { status: status ?? this.status, videoUrl: videoUrl ?? this.videoUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception ?? this.exception, createdLocalVideoAd: createdLocalVideoAd ?? this.createdLocalVideoAd, ); @@ -75,7 +69,6 @@ class CreateLocalVideoAdState extends Equatable { status, videoUrl, targetUrl, - contentStatus, exception, createdLocalVideoAd, ]; diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_bloc.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_bloc.dart index f5165788..0702b979 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_bloc.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_bloc.dart @@ -21,7 +21,6 @@ class UpdateLocalBannerAdBloc on(_onLoaded); on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); add(UpdateLocalBannerAdLoaded(_id)); @@ -44,7 +43,6 @@ class UpdateLocalBannerAdBloc initialAd: localBannerAd, imageUrl: localBannerAd.imageUrl, targetUrl: localBannerAd.targetUrl, - contentStatus: localBannerAd.status, ), ); } on HttpException catch (e) { @@ -75,13 +73,6 @@ class UpdateLocalBannerAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - UpdateLocalBannerAdStatusChanged event, - Emitter emit, - ) { - emit(state.copyWith(contentStatus: event.status)); - } - Future _onSubmitted( UpdateLocalBannerAdSubmitted event, Emitter emit, @@ -95,7 +86,7 @@ class UpdateLocalBannerAdBloc imageUrl: state.imageUrl, targetUrl: state.targetUrl, updatedAt: now, - status: state.contentStatus, + status: state.initialAd!.status, // Maintain original status ); await _localAdsRepository.update( diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_event.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_event.dart index 1972e6a0..4a370975 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_event.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_event.dart @@ -51,20 +51,6 @@ final class UpdateLocalBannerAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template update_local_banner_ad_status_changed} -/// Event to notify that the content status of the local banner ad has changed. -/// {@endtemplate} -final class UpdateLocalBannerAdStatusChanged extends UpdateLocalBannerAdEvent { - /// {@macro update_local_banner_ad_status_changed} - const UpdateLocalBannerAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template update_local_banner_ad_submitted} /// Event to request submission of the updated local banner ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_state.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_state.dart index 3efd069b..70769281 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_state.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_banner_ad_state.dart @@ -25,7 +25,6 @@ final class UpdateLocalBannerAdState extends Equatable { this.initialAd, this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.updatedAd, }); @@ -34,7 +33,6 @@ final class UpdateLocalBannerAdState extends Equatable { final LocalBannerAd? initialAd; final String imageUrl; final String targetUrl; - final ContentStatus contentStatus; final HttpException? exception; final LocalBannerAd? updatedAd; @@ -45,16 +43,13 @@ final class UpdateLocalBannerAdState extends Equatable { /// Returns true if there are changes compared to the initial ad. bool get isDirty => initialAd != null && - (imageUrl != initialAd!.imageUrl || - targetUrl != initialAd!.targetUrl || - contentStatus != initialAd!.status); + (imageUrl != initialAd!.imageUrl || targetUrl != initialAd!.targetUrl); UpdateLocalBannerAdState copyWith({ UpdateLocalBannerAdStatus? status, LocalBannerAd? initialAd, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalBannerAd? updatedAd, }) { @@ -63,7 +58,6 @@ final class UpdateLocalBannerAdState extends Equatable { initialAd: initialAd ?? this.initialAd, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception, updatedAd: updatedAd ?? this.updatedAd, ); @@ -75,7 +69,6 @@ final class UpdateLocalBannerAdState extends Equatable { initialAd, imageUrl, targetUrl, - contentStatus, exception, updatedAd, ]; diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart index 706f964b..d7b2b522 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart @@ -22,7 +22,6 @@ class UpdateLocalInterstitialAdBloc on(_onLoaded); on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); add(UpdateLocalInterstitialAdLoaded(_id)); @@ -45,7 +44,6 @@ class UpdateLocalInterstitialAdBloc initialAd: localInterstitialAd, imageUrl: localInterstitialAd.imageUrl, targetUrl: localInterstitialAd.targetUrl, - contentStatus: localInterstitialAd.status, ), ); } on HttpException catch (e) { @@ -79,13 +77,6 @@ class UpdateLocalInterstitialAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - UpdateLocalInterstitialAdStatusChanged event, - Emitter emit, - ) { - emit(state.copyWith(contentStatus: event.status)); - } - Future _onSubmitted( UpdateLocalInterstitialAdSubmitted event, Emitter emit, @@ -99,7 +90,7 @@ class UpdateLocalInterstitialAdBloc imageUrl: state.imageUrl, targetUrl: state.targetUrl, updatedAt: now, - status: state.contentStatus, + status: state.initialAd!.status, // Maintain original status ); await _localAdsRepository.update( diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_event.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_event.dart index ca70b457..98e08feb 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_event.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_event.dart @@ -52,21 +52,6 @@ final class UpdateLocalInterstitialAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template update_local_interstitial_ad_status_changed} -/// Event to notify that the content status of the local interstitial ad has changed. -/// {@endtemplate} -final class UpdateLocalInterstitialAdStatusChanged - extends UpdateLocalInterstitialAdEvent { - /// {@macro update_local_interstitial_ad_status_changed} - const UpdateLocalInterstitialAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template update_local_interstitial_ad_submitted} /// Event to request submission of the updated local interstitial ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_state.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_state.dart index 001be9d8..c572ea5c 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_state.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_state.dart @@ -25,7 +25,6 @@ final class UpdateLocalInterstitialAdState extends Equatable { this.initialAd, this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.updatedAd, }); @@ -34,7 +33,6 @@ final class UpdateLocalInterstitialAdState extends Equatable { final LocalInterstitialAd? initialAd; final String imageUrl; final String targetUrl; - final ContentStatus contentStatus; final HttpException? exception; final LocalInterstitialAd? updatedAd; @@ -45,16 +43,13 @@ final class UpdateLocalInterstitialAdState extends Equatable { /// Returns true if there are changes compared to the initial ad. bool get isDirty => initialAd != null && - (imageUrl != initialAd!.imageUrl || - targetUrl != initialAd!.targetUrl || - contentStatus != initialAd!.status); + (imageUrl != initialAd!.imageUrl || targetUrl != initialAd!.targetUrl); UpdateLocalInterstitialAdState copyWith({ UpdateLocalInterstitialAdStatus? status, LocalInterstitialAd? initialAd, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalInterstitialAd? updatedAd, }) { @@ -63,7 +58,6 @@ final class UpdateLocalInterstitialAdState extends Equatable { initialAd: initialAd ?? this.initialAd, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception, updatedAd: updatedAd ?? this.updatedAd, ); @@ -75,7 +69,6 @@ final class UpdateLocalInterstitialAdState extends Equatable { initialAd, imageUrl, targetUrl, - contentStatus, exception, updatedAd, ]; diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_bloc.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_bloc.dart index 241439f8..28f696f6 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_bloc.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_bloc.dart @@ -23,7 +23,6 @@ class UpdateLocalNativeAdBloc on(_onSubtitleChanged); on(_onImageUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); add(UpdateLocalNativeAdLoaded(_id)); @@ -48,7 +47,6 @@ class UpdateLocalNativeAdBloc subtitle: localNativeAd.subtitle, imageUrl: localNativeAd.imageUrl, targetUrl: localNativeAd.targetUrl, - contentStatus: localNativeAd.status, ), ); } on HttpException catch (e) { @@ -93,13 +91,6 @@ class UpdateLocalNativeAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - UpdateLocalNativeAdStatusChanged event, - Emitter emit, - ) { - emit(state.copyWith(contentStatus: event.status)); - } - Future _onSubmitted( UpdateLocalNativeAdSubmitted event, Emitter emit, @@ -115,7 +106,7 @@ class UpdateLocalNativeAdBloc imageUrl: state.imageUrl, targetUrl: state.targetUrl, updatedAt: now, - status: state.contentStatus, + status: state.initialAd!.status, // Maintain original status ); await _localAdsRepository.update( diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_event.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_event.dart index 06a07bde..11f5fefe 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_event.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_event.dart @@ -80,20 +80,6 @@ final class UpdateLocalNativeAdTargetUrlChanged List get props => [targetUrl]; } -/// {@template update_local_native_ad_status_changed} -/// Event to notify that the content status of the local native ad has changed. -/// {@endtemplate} -final class UpdateLocalNativeAdStatusChanged extends UpdateLocalNativeAdEvent { - /// {@macro update_local_native_ad_status_changed} - const UpdateLocalNativeAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template update_local_native_ad_submitted} /// Event to request submission of the updated local native ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_state.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_state.dart index 99b0b8a5..d8df0932 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_state.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_state.dart @@ -27,7 +27,6 @@ final class UpdateLocalNativeAdState extends Equatable { this.subtitle = '', this.imageUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.updatedAd, }); @@ -38,7 +37,6 @@ final class UpdateLocalNativeAdState extends Equatable { final String subtitle; final String imageUrl; final String targetUrl; - final ContentStatus contentStatus; final HttpException? exception; final LocalNativeAd? updatedAd; @@ -56,8 +54,7 @@ final class UpdateLocalNativeAdState extends Equatable { (title != initialAd!.title || subtitle != initialAd!.subtitle || imageUrl != initialAd!.imageUrl || - targetUrl != initialAd!.targetUrl || - contentStatus != initialAd!.status); + targetUrl != initialAd!.targetUrl); UpdateLocalNativeAdState copyWith({ UpdateLocalNativeAdStatus? status, @@ -66,7 +63,6 @@ final class UpdateLocalNativeAdState extends Equatable { String? subtitle, String? imageUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalNativeAd? updatedAd, }) { @@ -77,7 +73,6 @@ final class UpdateLocalNativeAdState extends Equatable { subtitle: subtitle ?? this.subtitle, imageUrl: imageUrl ?? this.imageUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception, updatedAd: updatedAd ?? this.updatedAd, ); @@ -91,7 +86,6 @@ final class UpdateLocalNativeAdState extends Equatable { subtitle, imageUrl, targetUrl, - contentStatus, exception, updatedAd, ]; diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_bloc.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_bloc.dart index df29cfe3..c99ecd69 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_bloc.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_bloc.dart @@ -21,7 +21,6 @@ class UpdateLocalVideoAdBloc on(_onLoaded); on(_onVideoUrlChanged); on(_onTargetUrlChanged); - on(_onStatusChanged); on(_onSubmitted); add(UpdateLocalVideoAdLoaded(_id)); @@ -44,7 +43,6 @@ class UpdateLocalVideoAdBloc initialAd: localVideoAd, videoUrl: localVideoAd.videoUrl, targetUrl: localVideoAd.targetUrl, - contentStatus: localVideoAd.status, ), ); } on HttpException catch (e) { @@ -75,13 +73,6 @@ class UpdateLocalVideoAdBloc emit(state.copyWith(targetUrl: event.targetUrl)); } - void _onStatusChanged( - UpdateLocalVideoAdStatusChanged event, - Emitter emit, - ) { - emit(state.copyWith(contentStatus: event.status)); - } - Future _onSubmitted( UpdateLocalVideoAdSubmitted event, Emitter emit, @@ -95,7 +86,7 @@ class UpdateLocalVideoAdBloc videoUrl: state.videoUrl, targetUrl: state.targetUrl, updatedAt: now, - status: state.contentStatus, + status: state.initialAd!.status, // Maintain original status ); await _localAdsRepository.update( diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_event.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_event.dart index 14c1cdc4..43c1e2d8 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_event.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_event.dart @@ -49,20 +49,6 @@ final class UpdateLocalVideoAdTargetUrlChanged extends UpdateLocalVideoAdEvent { List get props => [targetUrl]; } -/// {@template update_local_video_ad_status_changed} -/// Event to notify that the content status of the local video ad has changed. -/// {@endtemplate} -final class UpdateLocalVideoAdStatusChanged extends UpdateLocalVideoAdEvent { - /// {@macro update_local_video_ad_status_changed} - const UpdateLocalVideoAdStatusChanged(this.status); - - /// The new content status. - final ContentStatus status; - - @override - List get props => [status]; -} - /// {@template update_local_video_ad_submitted} /// Event to request submission of the updated local video ad. /// {@endtemplate} diff --git a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_state.dart b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_state.dart index 21daa8f9..263ea0fa 100644 --- a/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_state.dart +++ b/lib/local_ads_management/bloc/update_local_ads/update_local_video_ad_state.dart @@ -25,7 +25,6 @@ final class UpdateLocalVideoAdState extends Equatable { this.initialAd, this.videoUrl = '', this.targetUrl = '', - this.contentStatus = ContentStatus.active, this.exception, this.updatedAd, }); @@ -34,7 +33,6 @@ final class UpdateLocalVideoAdState extends Equatable { final LocalVideoAd? initialAd; final String videoUrl; final String targetUrl; - final ContentStatus contentStatus; final HttpException? exception; final LocalVideoAd? updatedAd; @@ -45,16 +43,13 @@ final class UpdateLocalVideoAdState extends Equatable { /// Returns true if there are changes compared to the initial ad. bool get isDirty => initialAd != null && - (videoUrl != initialAd!.videoUrl || - targetUrl != initialAd!.targetUrl || - contentStatus != initialAd!.status); + (videoUrl != initialAd!.videoUrl || targetUrl != initialAd!.targetUrl); UpdateLocalVideoAdState copyWith({ UpdateLocalVideoAdStatus? status, LocalVideoAd? initialAd, String? videoUrl, String? targetUrl, - ContentStatus? contentStatus, HttpException? exception, LocalVideoAd? updatedAd, }) { @@ -63,7 +58,6 @@ final class UpdateLocalVideoAdState extends Equatable { initialAd: initialAd ?? this.initialAd, videoUrl: videoUrl ?? this.videoUrl, targetUrl: targetUrl ?? this.targetUrl, - contentStatus: contentStatus ?? this.contentStatus, exception: exception, updatedAd: updatedAd ?? this.updatedAd, ); @@ -75,7 +69,6 @@ final class UpdateLocalVideoAdState extends Equatable { initialAd, videoUrl, targetUrl, - contentStatus, exception, updatedAd, ]; diff --git a/lib/local_ads_management/view/create_local_banner_ad_page.dart b/lib/local_ads_management/view/create_local_banner_ad_page.dart index 1fd0404a..d8cb5228 100644 --- a/lib/local_ads_management/view/create_local_banner_ad_page.dart +++ b/lib/local_ads_management/view/create_local_banner_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/create_local_ads/create_local_banner_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -143,20 +141,6 @@ class _CreateLocalBannerAdViewState extends State<_CreateLocalBannerAdView> { .add(CreateLocalBannerAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - CreateLocalBannerAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/create_local_interstitial_ad_page.dart b/lib/local_ads_management/view/create_local_interstitial_ad_page.dart index bb9fc957..2ae3f69f 100644 --- a/lib/local_ads_management/view/create_local_interstitial_ad_page.dart +++ b/lib/local_ads_management/view/create_local_interstitial_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/create_local_ads/create_local_interstitial_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -162,20 +160,6 @@ class _CreateLocalInterstitialAdViewState ), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - CreateLocalInterstitialAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/create_local_native_ad_page.dart b/lib/local_ads_management/view/create_local_native_ad_page.dart index 73661c51..9d4edba6 100644 --- a/lib/local_ads_management/view/create_local_native_ad_page.dart +++ b/lib/local_ads_management/view/create_local_native_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/create_local_ads/create_local_native_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -172,20 +170,6 @@ class _CreateLocalNativeAdViewState extends State<_CreateLocalNativeAdView> { .add(CreateLocalNativeAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - CreateLocalNativeAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/create_local_video_ad_page.dart b/lib/local_ads_management/view/create_local_video_ad_page.dart index 435bd454..f6dcc553 100644 --- a/lib/local_ads_management/view/create_local_video_ad_page.dart +++ b/lib/local_ads_management/view/create_local_video_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/create_local_ads/create_local_video_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -143,20 +141,6 @@ class _CreateLocalVideoAdViewState extends State<_CreateLocalVideoAdView> { .add(CreateLocalVideoAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - CreateLocalVideoAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/edit_local_banner_ad_page.dart b/lib/local_ads_management/view/edit_local_banner_ad_page.dart index efd62dbd..189776ab 100644 --- a/lib/local_ads_management/view/edit_local_banner_ad_page.dart +++ b/lib/local_ads_management/view/edit_local_banner_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/update_local_ads/update_local_banner_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -176,20 +174,6 @@ class _EditLocalBannerAdViewState extends State<_EditLocalBannerAdView> { .add(UpdateLocalBannerAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - UpdateLocalBannerAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/edit_local_interstitial_ad_page.dart b/lib/local_ads_management/view/edit_local_interstitial_ad_page.dart index 153576c0..4fcd5ff4 100644 --- a/lib/local_ads_management/view/edit_local_interstitial_ad_page.dart +++ b/lib/local_ads_management/view/edit_local_interstitial_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -195,20 +193,6 @@ class _EditLocalInterstitialAdViewState ), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - UpdateLocalInterstitialAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/edit_local_native_ad_page.dart b/lib/local_ads_management/view/edit_local_native_ad_page.dart index fdead6c2..85fbe0d7 100644 --- a/lib/local_ads_management/view/edit_local_native_ad_page.dart +++ b/lib/local_ads_management/view/edit_local_native_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/update_local_ads/update_local_native_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -205,20 +203,6 @@ class _EditLocalNativeAdViewState extends State<_EditLocalNativeAdView> { .add(UpdateLocalNativeAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - UpdateLocalNativeAdStatusChanged(value), - ); - }, - ), ], ), ), diff --git a/lib/local_ads_management/view/edit_local_video_ad_page.dart b/lib/local_ads_management/view/edit_local_video_ad_page.dart index a79ae8ab..c8c5d1ad 100644 --- a/lib/local_ads_management/view/edit_local_video_ad_page.dart +++ b/lib/local_ads_management/view/edit_local_video_ad_page.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart'; import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/update_local_ads/update_local_video_ad_bloc.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart'; -import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart'; import 'package:go_router/go_router.dart'; import 'package:ui_kit/ui_kit.dart'; @@ -174,20 +172,6 @@ class _EditLocalVideoAdViewState extends State<_EditLocalVideoAdView> { .add(UpdateLocalVideoAdTargetUrlChanged(value)), ), const SizedBox(height: AppSpacing.lg), - SearchableSelectionInput( - label: l10n.status, - selectedItem: state.contentStatus, - staticItems: ContentStatus.values.toList(), - itemBuilder: (context, status) => - Text(status.l10n(context)), - itemToString: (status) => status.l10n(context), - onChanged: (value) { - if (value == null) return; - context.read().add( - UpdateLocalVideoAdStatusChanged(value), - ); - }, - ), ], ), ),