Skip to content

Commit e90ba8d

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

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

@@ -143,20 +141,6 @@ class _CreateLocalVideoAdViewState extends State<_CreateLocalVideoAdView> {
143141
.add(CreateLocalVideoAdTargetUrlChanged(value)),
144142
),
145143
const SizedBox(height: AppSpacing.lg),
146-
SearchableSelectionInput<ContentStatus>(
147-
label: l10n.status,
148-
selectedItem: state.contentStatus,
149-
staticItems: ContentStatus.values.toList(),
150-
itemBuilder: (context, status) =>
151-
Text(status.l10n(context)),
152-
itemToString: (status) => status.l10n(context),
153-
onChanged: (value) {
154-
if (value == null) return;
155-
context.read<CreateLocalVideoAdBloc>().add(
156-
CreateLocalVideoAdStatusChanged(value),
157-
);
158-
},
159-
),
160144
],
161145
),
162146
),

0 commit comments

Comments
 (0)