@@ -16,7 +16,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
1616import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/bloc/dashboard_bloc.dart' ;
1717import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart' ;
1818import 'package:flutter_news_app_web_dashboard_full_source_code/router/router.dart' ;
19- import 'package:flutter_news_app_web_dashboard_full_source_code/shared/services/throttled_fetching_service .dart' ;
19+ import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared .dart' ;
2020import 'package:go_router/go_router.dart' ;
2121import 'package:kv_storage_service/kv_storage_service.dart' ;
2222import 'package:logging/logging.dart' ;
@@ -80,7 +80,9 @@ class App extends StatelessWidget {
8080 RepositoryProvider .value (value: _countriesRepository),
8181 RepositoryProvider .value (value: _languagesRepository),
8282 RepositoryProvider .value (value: _kvStorageService),
83- RepositoryProvider (create: (context) => const ThrottledFetchingService ()),
83+ RepositoryProvider (
84+ create: (context) => const ThrottledFetchingService (),
85+ ),
8486 ],
8587 child: MultiBlocProvider (
8688 providers: [
@@ -204,7 +206,6 @@ class _AppViewState extends State<_AppView> {
204206 fontFamily: fontFamily,
205207 );
206208
207- const double kMaxAppWidth = 1000 ; // Local constant for max width
208209 return Center (
209210 child: Card (
210211 margin: EdgeInsets .zero, // Remove default card margin
@@ -215,7 +216,9 @@ class _AppViewState extends State<_AppView> {
215216 ), // Match cardRadius from theme
216217 ),
217218 child: ConstrainedBox (
218- constraints: const BoxConstraints (maxWidth: kMaxAppWidth),
219+ constraints: const BoxConstraints (
220+ maxWidth: AppConstants .kMaxAppWidth,
221+ ),
219222 child: MaterialApp .router (
220223 debugShowCheckedModeBanner: false ,
221224 routerConfig: _router,
0 commit comments