forked from loicgeek/todo_getx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
26 lines (24 loc) · 758 Bytes
/
main.dart
File metadata and controls
26 lines (24 loc) · 758 Bytes
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
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:todo_app_getx/auth/auth.controller.dart';
import 'package:todo_app_getx/get_routes.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
AuthController authController = Get.put<AuthController>(AuthController());
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'Todo App with Get Package',
defaultTransition: Transition.rightToLeft,
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
initialRoute: "/splashscreen",
getPages: AppRoutes.routes,
);
}
}