Created
June 30, 2020 10:04
-
-
Save loicgeek/b7083a2f1fd00efa19522ad6098c1ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment