getMaterialWrapper function

Widget getMaterialWrapper (Widget app, String title, List<Locale> locales, ThemeData materialThemeData, bool displayDebugBadge)

Implementation

Widget getMaterialWrapper(Widget app, String title, List<Locale> locales,
    ThemeData materialThemeData, bool displayDebugBadge) {
  return MaterialApp(
      title: title,
      theme: materialThemeData != null
          ? materialThemeData
          : ThemeData(primaryColor: Colors.blue),
      localizationsDelegates: [
        EzTranslationsDelegate(locales),
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales: locales,
      debugShowCheckedModeBanner: displayDebugBadge,
      home: app);
}