Showing
2 changed files
with
8 additions
and
0 deletions
@@ -60,6 +60,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -60,6 +60,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
60 | final RouteInformationProvider? routeInformationProvider; | 60 | final RouteInformationProvider? routeInformationProvider; |
61 | final RouteInformationParser<Object>? routeInformationParser; | 61 | final RouteInformationParser<Object>? routeInformationParser; |
62 | final RouterDelegate<Object>? routerDelegate; | 62 | final RouterDelegate<Object>? routerDelegate; |
63 | + final RouterConfig<Object>? routerConfig; | ||
63 | final BackButtonDispatcher? backButtonDispatcher; | 64 | final BackButtonDispatcher? backButtonDispatcher; |
64 | final CupertinoThemeData? theme; | 65 | final CupertinoThemeData? theme; |
65 | final bool useInheritedMediaQuery; | 66 | final bool useInheritedMediaQuery; |
@@ -124,6 +125,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -124,6 +125,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
124 | backButtonDispatcher = null, | 125 | backButtonDispatcher = null, |
125 | routeInformationParser = null, | 126 | routeInformationParser = null, |
126 | routerDelegate = null, | 127 | routerDelegate = null, |
128 | + routerConfig = null, | ||
127 | super(key: key); | 129 | super(key: key); |
128 | 130 | ||
129 | static String _cleanRouteName(String name) { | 131 | static String _cleanRouteName(String name) { |
@@ -143,6 +145,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -143,6 +145,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
143 | this.routeInformationProvider, | 145 | this.routeInformationProvider, |
144 | this.routeInformationParser, | 146 | this.routeInformationParser, |
145 | this.routerDelegate, | 147 | this.routerDelegate, |
148 | + this.routerConfig, | ||
146 | this.backButtonDispatcher, | 149 | this.backButtonDispatcher, |
147 | this.builder, | 150 | this.builder, |
148 | this.title = '', | 151 | this.title = '', |
@@ -248,6 +251,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -248,6 +251,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
248 | routeInformationParser: controller.routeInformationParser, | 251 | routeInformationParser: controller.routeInformationParser, |
249 | backButtonDispatcher: backButtonDispatcher, | 252 | backButtonDispatcher: backButtonDispatcher, |
250 | routeInformationProvider: routeInformationProvider, | 253 | routeInformationProvider: routeInformationProvider, |
254 | + routerConfig: routerConfig, | ||
251 | key: controller.unikey, | 255 | key: controller.unikey, |
252 | builder: (context, child) => Directionality( | 256 | builder: (context, child) => Directionality( |
253 | textDirection: textDirection ?? | 257 | textDirection: textDirection ?? |
@@ -64,6 +64,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -64,6 +64,7 @@ class GetMaterialApp extends StatelessWidget { | ||
64 | final RouteInformationProvider? routeInformationProvider; | 64 | final RouteInformationProvider? routeInformationProvider; |
65 | final RouteInformationParser<Object>? routeInformationParser; | 65 | final RouteInformationParser<Object>? routeInformationParser; |
66 | final RouterDelegate<Object>? routerDelegate; | 66 | final RouterDelegate<Object>? routerDelegate; |
67 | + final RouterConfig<Object>? routerConfig; | ||
67 | final BackButtonDispatcher? backButtonDispatcher; | 68 | final BackButtonDispatcher? backButtonDispatcher; |
68 | final bool useInheritedMediaQuery; | 69 | final bool useInheritedMediaQuery; |
69 | 70 | ||
@@ -128,6 +129,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -128,6 +129,7 @@ class GetMaterialApp extends StatelessWidget { | ||
128 | backButtonDispatcher = null, | 129 | backButtonDispatcher = null, |
129 | routeInformationParser = null, | 130 | routeInformationParser = null, |
130 | routerDelegate = null, | 131 | routerDelegate = null, |
132 | + routerConfig = null, | ||
131 | super(key: key); | 133 | super(key: key); |
132 | 134 | ||
133 | GetMaterialApp.router({ | 135 | GetMaterialApp.router({ |
@@ -136,6 +138,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -136,6 +138,7 @@ class GetMaterialApp extends StatelessWidget { | ||
136 | this.scaffoldMessengerKey, | 138 | this.scaffoldMessengerKey, |
137 | this.routeInformationParser, | 139 | this.routeInformationParser, |
138 | this.routerDelegate, | 140 | this.routerDelegate, |
141 | + this.routerConfig, | ||
139 | this.backButtonDispatcher, | 142 | this.backButtonDispatcher, |
140 | this.builder, | 143 | this.builder, |
141 | this.title = '', | 144 | this.title = '', |
@@ -244,6 +247,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -244,6 +247,7 @@ class GetMaterialApp extends StatelessWidget { | ||
244 | routeInformationParser: controller.routeInformationParser, | 247 | routeInformationParser: controller.routeInformationParser, |
245 | backButtonDispatcher: backButtonDispatcher, | 248 | backButtonDispatcher: backButtonDispatcher, |
246 | routeInformationProvider: routeInformationProvider, | 249 | routeInformationProvider: routeInformationProvider, |
250 | + routerConfig: routerConfig, | ||
247 | key: controller.unikey, | 251 | key: controller.unikey, |
248 | builder: (context, child) => Directionality( | 252 | builder: (context, child) => Directionality( |
249 | textDirection: textDirection ?? | 253 | textDirection: textDirection ?? |
-
Please register or login to post a comment