23 lines
639 B
Dart
23 lines
639 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:routemaster/routemaster.dart';
|
|
|
|
import 'Services/navigation_service.dart';
|
|
import 'Services/router_service.dart';
|
|
import 'Services/theme_service.dart';
|
|
|
|
void main() {
|
|
runApp(
|
|
MaterialApp.router(
|
|
routerDelegate: RoutemasterDelegate(
|
|
routesBuilder: (final BuildContext context) => RouterService.routes,
|
|
navigatorKey: NavigationService.navigatorKey,
|
|
),
|
|
routeInformationParser: const RoutemasterParser(),
|
|
|
|
title: 'DragonLedger 🐉📒',
|
|
theme: ThemeService.getLightTheme(),
|
|
darkTheme: ThemeService.getDarkTheme(),
|
|
),
|
|
);
|
|
}
|