Committed by
GitHub
Merge pull request #2643 from Riadloc/master
add routerConfig
Showing
2 changed files
with
8 additions
and
0 deletions
| @@ -59,6 +59,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -59,6 +59,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 59 | final RouteInformationProvider? routeInformationProvider; | 59 | final RouteInformationProvider? routeInformationProvider; |
| 60 | final RouteInformationParser<Object>? routeInformationParser; | 60 | final RouteInformationParser<Object>? routeInformationParser; |
| 61 | final RouterDelegate<Object>? routerDelegate; | 61 | final RouterDelegate<Object>? routerDelegate; |
| 62 | + final RouterConfig<Object>? routerConfig; | ||
| 62 | final BackButtonDispatcher? backButtonDispatcher; | 63 | final BackButtonDispatcher? backButtonDispatcher; |
| 63 | final CupertinoThemeData? theme; | 64 | final CupertinoThemeData? theme; |
| 64 | final bool useInheritedMediaQuery; | 65 | final bool useInheritedMediaQuery; |
| @@ -123,6 +124,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -123,6 +124,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 123 | backButtonDispatcher = null, | 124 | backButtonDispatcher = null, |
| 124 | routeInformationParser = null, | 125 | routeInformationParser = null, |
| 125 | routerDelegate = null, | 126 | routerDelegate = null, |
| 127 | + routerConfig = null, | ||
| 126 | super(key: key); | 128 | super(key: key); |
| 127 | 129 | ||
| 128 | const GetCupertinoApp.router({ | 130 | const GetCupertinoApp.router({ |
| @@ -131,6 +133,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -131,6 +133,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 131 | this.routeInformationProvider, | 133 | this.routeInformationProvider, |
| 132 | this.routeInformationParser, | 134 | this.routeInformationParser, |
| 133 | this.routerDelegate, | 135 | this.routerDelegate, |
| 136 | + this.routerConfig, | ||
| 134 | this.backButtonDispatcher, | 137 | this.backButtonDispatcher, |
| 135 | this.builder, | 138 | this.builder, |
| 136 | this.title = '', | 139 | this.title = '', |
| @@ -222,6 +225,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -222,6 +225,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 222 | routeInformationParser: controller.config.routeInformationParser, | 225 | routeInformationParser: controller.config.routeInformationParser, |
| 223 | backButtonDispatcher: backButtonDispatcher, | 226 | backButtonDispatcher: backButtonDispatcher, |
| 224 | routeInformationProvider: routeInformationProvider, | 227 | routeInformationProvider: routeInformationProvider, |
| 228 | + routerConfig: routerConfig, | ||
| 225 | key: controller.config.unikey, | 229 | key: controller.config.unikey, |
| 226 | builder: (context, child) => Directionality( | 230 | builder: (context, child) => Directionality( |
| 227 | textDirection: textDirection ?? | 231 | textDirection: textDirection ?? |
| @@ -63,6 +63,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -63,6 +63,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 63 | final RouteInformationProvider? routeInformationProvider; | 63 | final RouteInformationProvider? routeInformationProvider; |
| 64 | final RouteInformationParser<Object>? routeInformationParser; | 64 | final RouteInformationParser<Object>? routeInformationParser; |
| 65 | final RouterDelegate<Object>? routerDelegate; | 65 | final RouterDelegate<Object>? routerDelegate; |
| 66 | + final RouterConfig<Object>? routerConfig; | ||
| 66 | final BackButtonDispatcher? backButtonDispatcher; | 67 | final BackButtonDispatcher? backButtonDispatcher; |
| 67 | final bool useInheritedMediaQuery; | 68 | final bool useInheritedMediaQuery; |
| 68 | 69 | ||
| @@ -127,6 +128,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -127,6 +128,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 127 | backButtonDispatcher = null, | 128 | backButtonDispatcher = null, |
| 128 | routeInformationParser = null, | 129 | routeInformationParser = null, |
| 129 | routerDelegate = null, | 130 | routerDelegate = null, |
| 131 | + routerConfig = null, | ||
| 130 | super(key: key); | 132 | super(key: key); |
| 131 | 133 | ||
| 132 | const GetMaterialApp.router({ | 134 | const GetMaterialApp.router({ |
| @@ -135,6 +137,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -135,6 +137,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 135 | this.scaffoldMessengerKey, | 137 | this.scaffoldMessengerKey, |
| 136 | this.routeInformationParser, | 138 | this.routeInformationParser, |
| 137 | this.routerDelegate, | 139 | this.routerDelegate, |
| 140 | + this.routerConfig, | ||
| 138 | this.backButtonDispatcher, | 141 | this.backButtonDispatcher, |
| 139 | this.builder, | 142 | this.builder, |
| 140 | this.title = '', | 143 | this.title = '', |
| @@ -245,6 +248,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -245,6 +248,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 245 | routeInformationParser: controller.config.routeInformationParser, | 248 | routeInformationParser: controller.config.routeInformationParser, |
| 246 | backButtonDispatcher: backButtonDispatcher, | 249 | backButtonDispatcher: backButtonDispatcher, |
| 247 | routeInformationProvider: routeInformationProvider, | 250 | routeInformationProvider: routeInformationProvider, |
| 251 | + routerConfig: routerConfig, | ||
| 248 | key: controller.config.unikey, | 252 | key: controller.config.unikey, |
| 249 | builder: (context, child) => Directionality( | 253 | builder: (context, child) => Directionality( |
| 250 | textDirection: textDirection ?? | 254 | textDirection: textDirection ?? |
-
Please register or login to post a comment