@@ -16,7 +16,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
16
16
import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/bloc/dashboard_bloc.dart' ;
17
17
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart' ;
18
18
import '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' ;
20
20
import 'package:go_router/go_router.dart' ;
21
21
import 'package:kv_storage_service/kv_storage_service.dart' ;
22
22
import 'package:logging/logging.dart' ;
@@ -80,7 +80,9 @@ class App extends StatelessWidget {
80
80
RepositoryProvider .value (value: _countriesRepository),
81
81
RepositoryProvider .value (value: _languagesRepository),
82
82
RepositoryProvider .value (value: _kvStorageService),
83
- RepositoryProvider (create: (context) => const ThrottledFetchingService ()),
83
+ RepositoryProvider (
84
+ create: (context) => const ThrottledFetchingService (),
85
+ ),
84
86
],
85
87
child: MultiBlocProvider (
86
88
providers: [
@@ -204,7 +206,6 @@ class _AppViewState extends State<_AppView> {
204
206
fontFamily: fontFamily,
205
207
);
206
208
207
- const double kMaxAppWidth = 1000 ; // Local constant for max width
208
209
return Center (
209
210
child: Card (
210
211
margin: EdgeInsets .zero, // Remove default card margin
@@ -215,7 +216,9 @@ class _AppViewState extends State<_AppView> {
215
216
), // Match cardRadius from theme
216
217
),
217
218
child: ConstrainedBox (
218
- constraints: const BoxConstraints (maxWidth: kMaxAppWidth),
219
+ constraints: const BoxConstraints (
220
+ maxWidth: AppConstants .kMaxAppWidth,
221
+ ),
219
222
child: MaterialApp .router (
220
223
debugShowCheckedModeBanner: false ,
221
224
routerConfig: _router,
0 commit comments