Skip to content

Commit 3ba7f49

Browse files
committed
refactor(local_ads_management): remove content status selection input
- Remove unused import statements for ContentStatusL10n and SearchableSelectionInput - Remove ContentStatus selection input from the create local native ad form
1 parent ba68690 commit 3ba7f49

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/local_ads_management/view/create_local_native_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_native_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

@@ -172,20 +170,6 @@ class _CreateLocalNativeAdViewState extends State<_CreateLocalNativeAdView> {
172170
.add(CreateLocalNativeAdTargetUrlChanged(value)),
173171
),
174172
const SizedBox(height: AppSpacing.lg),
175-
SearchableSelectionInput<ContentStatus>(
176-
label: l10n.status,
177-
selectedItem: state.contentStatus,
178-
staticItems: ContentStatus.values.toList(),
179-
itemBuilder: (context, status) =>
180-
Text(status.l10n(context)),
181-
itemToString: (status) => status.l10n(context),
182-
onChanged: (value) {
183-
if (value == null) return;
184-
context.read<CreateLocalNativeAdBloc>().add(
185-
CreateLocalNativeAdStatusChanged(value),
186-
);
187-
},
188-
),
189173
],
190174
),
191175
),

0 commit comments

Comments
 (0)