Last active
July 16, 2020 18:32
-
-
Save kauemurakami/b677c62cc5fd4ac05fafb8baaae041ea to your computer and use it in GitHub Desktop.
Classe pirncipal
This file contains 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:getx_pattern/app/routes/app_pages.dart'; | |
import 'package:getx_pattern/app/translations/app_translations.dart'; | |
import 'app/ui/android/home/home_page.dart'; | |
import 'app/ui/theme/app_theme.dart'; | |
void main() { | |
runApp( | |
GetMaterialApp( | |
debugShowCheckedModeBanner: false, | |
initialRoute: Routes.INITIAL, //Rota inicial | |
initialBinding: HomeBinding(), // dependencias iniciais | |
theme: appThemeData, //Tema personalizado app | |
defaultTransition: Transition.fade, // Transição de telas padrão | |
getPages: AppPages.pages, // Seu array de navegação contendo as rotas e suas pages | |
home: HomePage(), // Page inicial | |
locale: Locale('pt', 'BR'), // Língua padrão | |
translationsKeys: AppTranslation.translations, // Suas chaves contendo as traduções<map> | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment