forked from lohanidamodar/flutter_ui_challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
42 lines (37 loc) · 1.18 KB
/
main.dart
File metadata and controls
42 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Author: Damodar Lohani
* profile: https://github.com/lohanidamodar
*/
import 'package:flutter/material.dart';
import 'package:flutter_ui_challenges/features/home/presentation/pages/new_home.dart';
import 'core/presentation/pages/about.dart';
import 'core/presentation/pages/home.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// https://stackoverflow.com/questions/44004451/navigator-operation-requested-with-a-context-that-does-not-include-a-navigator
final _navKey = GlobalKey<NavigatorState>();
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: _navKey,
debugShowCheckedModeBanner: false,
title: 'Flutter UIs',
theme: ThemeData(
scaffoldBackgroundColor: Colors.grey.shade300,
primarySwatch: Colors.red,
accentColor: Colors.indigo,
),
home: NewHomePage(),
routes: {
// "auth_home": (_) => AuthHomePage(),
"challenge_home": (_) => HomePage(),
"about": (_) => AboutPage(),
// "signup": (_) => SignupPage(),
// "profile": (_) => ProfilePage(),
},
);
}
}