mc_gallery/lib/app.dart
Mehul Ahal 8e54cfffc5 init
2022-12-20 08:50:44 +01:00

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,
);
}
}