Skip to content

Commit

Permalink
Merge pull request Idean#157 from a43mrk/master
Browse files Browse the repository at this point in the history
buider and localeResolutionCallback wired to MaterialApp
  • Loading branch information
florent37 authored Jul 24, 2020
2 parents 5135d92 + 2472b54 commit 2943825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/widget/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class NeumorphicApp extends StatelessWidget {
final List<NavigatorObserver> navigatorObservers;
final InitialRouteListFactory onGenerateInitialRoutes;
final bool debugShowCheckedModeBanner;
final Function(BuildContext, Widget) builder;
final Function(Locale, Iterable<Locale>) localeResolutionCallback;


const NeumorphicApp({
Key key,
Expand All @@ -45,6 +48,8 @@ class NeumorphicApp extends StatelessWidget {
this.themeMode = ThemeMode.system,
this.materialDarkTheme,
this.materialTheme,
this.builder,
this.localeResolutionCallback
}) : super(key: key);

ThemeData _getMaterialTheme(NeumorphicThemeData theme) {
Expand Down Expand Up @@ -104,6 +109,8 @@ class NeumorphicApp extends StatelessWidget {
navigatorKey: navigatorKey,
navigatorObservers: navigatorObservers,
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
builder: builder,
localeResolutionCallback: localeResolutionCallback
),
),
),
Expand Down

0 comments on commit 2943825

Please sign in to comment.