Skip to content

Commit 9956a0a

Browse files
committed
refactor(local_ads_management): remove content status selection input
- Remove SearchableSelectionInput widget for ContentStatus - Remove unused imports related to ContentStatus localization and widget
1 parent 82112ba commit 9956a0a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/local_ads_management/view/edit_local_interstitial_ad_page.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import 'package:flutter/material.dart';
44
import 'package:flutter_bloc/flutter_bloc.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/bloc/update_local_ads/update_local_interstitial_ad_bloc.dart';
7-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/content_status_l10n.dart';
8-
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/widgets/searchable_selection_input.dart';
97
import 'package:go_router/go_router.dart';
108
import 'package:ui_kit/ui_kit.dart';
119

@@ -195,20 +193,6 @@ class _EditLocalInterstitialAdViewState
195193
),
196194
),
197195
const SizedBox(height: AppSpacing.lg),
198-
SearchableSelectionInput<ContentStatus>(
199-
label: l10n.status,
200-
selectedItem: state.contentStatus,
201-
staticItems: ContentStatus.values.toList(),
202-
itemBuilder: (context, status) =>
203-
Text(status.l10n(context)),
204-
itemToString: (status) => status.l10n(context),
205-
onChanged: (value) {
206-
if (value == null) return;
207-
context.read<UpdateLocalInterstitialAdBloc>().add(
208-
UpdateLocalInterstitialAdStatusChanged(value),
209-
);
210-
},
211-
),
212196
],
213197
),
214198
),

0 commit comments

Comments
 (0)