23 lines
771 B
Dart
23 lines
771 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'features/core/abstracts/app_setup.dart';
|
|
import 'features/core/abstracts/router/app_router.dart';
|
|
import 'features/core/data/constants/const_colors.dart';
|
|
|
|
class McgApp extends StatelessWidget {
|
|
const McgApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final appRouter = McgRouter.locate.router;
|
|
return MaterialApp.router(
|
|
title: 'MC Gallery App',
|
|
theme: ConstThemes.materialLightTheme,
|
|
darkTheme: ConstThemes.materialDarkTheme,
|
|
supportedLocales: AppSetup.supportedLocales,
|
|
routeInformationParser: appRouter.routeInformationParser,
|
|
routerDelegate: appRouter.routerDelegate,
|
|
routeInformationProvider: appRouter.routeInformationProvider,
|
|
);
|
|
}
|
|
}
|