Skip to content

Commit ba68690

Browse files
committed
refactor(local_ads_management): remove status selection input
- Remove SearchableSelectionInput widget for ContentStatus - Delete unused imports related to ContentStatus and localization
1 parent dc24608 commit ba68690

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/local_ads_management/view/create_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/create_local_ads/create_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

@@ -162,20 +160,6 @@ class _CreateLocalInterstitialAdViewState
162160
),
163161
),
164162
const SizedBox(height: AppSpacing.lg),
165-
SearchableSelectionInput<ContentStatus>(
166-
label: l10n.status,
167-
selectedItem: state.contentStatus,
168-
staticItems: ContentStatus.values.toList(),
169-
itemBuilder: (context, status) =>
170-
Text(status.l10n(context)),
171-
itemToString: (status) => status.l10n(context),
172-
onChanged: (value) {
173-
if (value == null) return;
174-
context.read<CreateLocalInterstitialAdBloc>().add(
175-
CreateLocalInterstitialAdStatusChanged(value),
176-
);
177-
},
178-
),
179163
],
180164
),
181165
),

0 commit comments

Comments
 (0)