Skip to content

Commit

Permalink
add routerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Riadloc committed Dec 8, 2022
1 parent c2f8921 commit c3e9a1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/get_navigation/src/root/get_cupertino_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class GetCupertinoApp extends StatelessWidget {
final RouteInformationProvider? routeInformationProvider;
final RouteInformationParser<Object>? routeInformationParser;
final RouterDelegate<Object>? routerDelegate;
final RouterConfig<Object>? routerConfig;
final BackButtonDispatcher? backButtonDispatcher;
final CupertinoThemeData? theme;
final bool useInheritedMediaQuery;
Expand Down Expand Up @@ -124,6 +125,7 @@ class GetCupertinoApp extends StatelessWidget {
backButtonDispatcher = null,
routeInformationParser = null,
routerDelegate = null,
routerConfig = null,
super(key: key);

static String _cleanRouteName(String name) {
Expand All @@ -143,6 +145,7 @@ class GetCupertinoApp extends StatelessWidget {
this.routeInformationProvider,
this.routeInformationParser,
this.routerDelegate,
this.routerConfig,
this.backButtonDispatcher,
this.builder,
this.title = '',
Expand Down Expand Up @@ -248,6 +251,7 @@ class GetCupertinoApp extends StatelessWidget {
routeInformationParser: controller.routeInformationParser,
backButtonDispatcher: backButtonDispatcher,
routeInformationProvider: routeInformationProvider,
routerConfig: routerConfig,
key: controller.unikey,
builder: (context, child) => Directionality(
textDirection: textDirection ??
Expand Down
4 changes: 4 additions & 0 deletions lib/get_navigation/src/root/get_material_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class GetMaterialApp extends StatelessWidget {
final RouteInformationProvider? routeInformationProvider;
final RouteInformationParser<Object>? routeInformationParser;
final RouterDelegate<Object>? routerDelegate;
final RouterConfig<Object>? routerConfig;
final BackButtonDispatcher? backButtonDispatcher;
final bool useInheritedMediaQuery;

Expand Down Expand Up @@ -128,6 +129,7 @@ class GetMaterialApp extends StatelessWidget {
backButtonDispatcher = null,
routeInformationParser = null,
routerDelegate = null,
routerConfig = null,
super(key: key);

GetMaterialApp.router({
Expand All @@ -136,6 +138,7 @@ class GetMaterialApp extends StatelessWidget {
this.scaffoldMessengerKey,
this.routeInformationParser,
this.routerDelegate,
this.routerConfig,
this.backButtonDispatcher,
this.builder,
this.title = '',
Expand Down Expand Up @@ -244,6 +247,7 @@ class GetMaterialApp extends StatelessWidget {
routeInformationParser: controller.routeInformationParser,
backButtonDispatcher: backButtonDispatcher,
routeInformationProvider: routeInformationProvider,
routerConfig: routerConfig,
key: controller.unikey,
builder: (context, child) => Directionality(
textDirection: textDirection ??
Expand Down

0 comments on commit c3e9a1d

Please sign in to comment.