@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
44import 'package:flutter_bloc/flutter_bloc.dart' ;
55import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
66import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/headlines_filter/headlines_filter_bloc.dart' ;
7- import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/widgets/content_action_buttons.dart' ; // Import the new widget
7+ import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/widgets/content_action_buttons.dart' ;
88import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart' ;
99import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
1010import 'package:flutter_news_app_web_dashboard_full_source_code/router/routes.dart' ;
@@ -146,7 +146,7 @@ class _HeadlinesPageState extends State<HeadlinesPage> {
146146 headlines: state.headlines,
147147 hasMore: state.headlinesHasMore,
148148 l10n: l10n,
149- isMobile: isMobile, // Pass isMobile to data source
149+ isMobile: isMobile,
150150 ),
151151 rowsPerPage: kDefaultRowsPerPage,
152152 availableRowsPerPage: const [kDefaultRowsPerPage],
@@ -195,14 +195,14 @@ class _HeadlinesDataSource extends DataTableSource {
195195 required this .headlines,
196196 required this .hasMore,
197197 required this .l10n,
198- required this .isMobile, // New parameter
198+ required this .isMobile,
199199 });
200200
201201 final BuildContext context;
202202 final List <Headline > headlines;
203203 final bool hasMore;
204204 final AppLocalizations l10n;
205- final bool isMobile; // New parameter
205+ final bool isMobile;
206206
207207 @override
208208 DataRow ? getRow (int index) {
0 commit comments