Skip to content

Commit 030acc5

Browse files
committed
refactor(local_ads_management): remove status selection input
- Remove SearchableSelectionInput widget for ContentStatus - Remove related imports for ContentStatusL10n and SearchableSelectionInput - Simplify the form by removing status selection functionality
1 parent 9cc8006 commit 030acc5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/local_ads_management/view/edit_local_video_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_video_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

@@ -174,20 +172,6 @@ class _EditLocalVideoAdViewState extends State<_EditLocalVideoAdView> {
174172
.add(UpdateLocalVideoAdTargetUrlChanged(value)),
175173
),
176174
const SizedBox(height: AppSpacing.lg),
177-
SearchableSelectionInput<ContentStatus>(
178-
label: l10n.status,
179-
selectedItem: state.contentStatus,
180-
staticItems: ContentStatus.values.toList(),
181-
itemBuilder: (context, status) =>
182-
Text(status.l10n(context)),
183-
itemToString: (status) => status.l10n(context),
184-
onChanged: (value) {
185-
if (value == null) return;
186-
context.read<UpdateLocalVideoAdBloc>().add(
187-
UpdateLocalVideoAdStatusChanged(value),
188-
);
189-
},
190-
),
191175
],
192176
),
193177
),

0 commit comments

Comments
 (0)