INNER CODE UNIT · Dart

MyApp

xuexiangjys/flutter_template · lib/init/default_app.dart:34

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Consumer2<AppTheme, LocaleModel>(
        builder: (context, appTheme, localeModel, _) {
      return GetMaterialApp(
        title: 'Flutter Project',
        theme: ThemeData(
          brightness: appTheme.brightness,
          primarySwatch: appTheme.themeColor,
          buttonColor: appTheme.themeColor,
        ),
        getPages: RouteMap.getPages,
        defaultTransition: Transition.rightToLeft,
        locale: localeModel.getLocale(),
        supportedLocales: I18n.delegate.supportedLocales,
        localizationsDelegates: [
          I18n.delegate,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…