Skip to content

Instantly share code, notes, and snippets.

@kauemurakami
Last active July 16, 2020 18:32
Show Gist options
  • Save kauemurakami/b677c62cc5fd4ac05fafb8baaae041ea to your computer and use it in GitHub Desktop.
Save kauemurakami/b677c62cc5fd4ac05fafb8baaae041ea to your computer and use it in GitHub Desktop.
Classe pirncipal
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