forked from Mriganka813/Buwnow_frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.dart
34 lines (30 loc) · 910 Bytes
/
main.dart
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
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:gofoods/router.dart';
import 'package:gofoods/screens/onbonding/onbonding.dart';
import 'package:provider/provider.dart';
import 'utils/notifirecolor.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MultiProvider(
providers: [
ChangeNotifierProvider(
create: (_) => ColorNotifier(),
),
],
child: MaterialApp(
debugShowCheckedModeBanner: false,
onGenerateRoute: (settings) => generateRoute(settings),
home: Onbonding(),
),
);
}
}