Showing
3 changed files
with
10 additions
and
5 deletions
| @@ -544,8 +544,10 @@ extension GetNavigationExt on GetInterface { | @@ -544,8 +544,10 @@ extension GetNavigationExt on GetInterface { | ||
| 544 | // return page; | 544 | // return page; |
| 545 | // } else if (page is Widget) { | 545 | // } else if (page is Widget) { |
| 546 | // Get.log( | 546 | // Get.log( |
| 547 | -// '''WARNING, consider using: "Get.$method(() => Page())" instead of "Get.$method(Page())". | ||
| 548 | -// Using a widget function instead of a widget fully guarantees that the widget and its controllers will be removed from memory when they are no longer used. | 547 | +// '''WARNING, consider using: "Get.$method(() => Page())" |
| 548 | +//instead of "Get.$method(Page())". | ||
| 549 | +// Using a widget function instead of a widget fully guarantees that the widget | ||
| 550 | +//and its controllers will be removed from memory when they are no longer used. | ||
| 549 | // '''); | 551 | // '''); |
| 550 | // return () => page; | 552 | // return () => page; |
| 551 | // } else if (page is String) { | 553 | // } else if (page is String) { |
| @@ -326,7 +326,8 @@ class GetDelegate extends RouterDelegate<RouteDecoder> | @@ -326,7 +326,8 @@ class GetDelegate extends RouterDelegate<RouteDecoder> | ||
| 326 | PreventDuplicateHandlingMode.ReorderRoutes, | 326 | PreventDuplicateHandlingMode.ReorderRoutes, |
| 327 | }) async { | 327 | }) async { |
| 328 | routeName = _cleanRouteName("/${page.runtimeType}"); | 328 | routeName = _cleanRouteName("/${page.runtimeType}"); |
| 329 | - // if (preventDuplicateHandlingMode == PreventDuplicateHandlingMode.Recreate) { | 329 | + // if (preventDuplicateHandlingMode == |
| 330 | + // PreventDuplicateHandlingMode.Recreate) { | ||
| 330 | // routeName = routeName + page.hashCode.toString(); | 331 | // routeName = routeName + page.hashCode.toString(); |
| 331 | // } | 332 | // } |
| 332 | 333 |
| 1 | void main() { | 1 | void main() { |
| 2 | - // testWidgets('Back swipe dismiss interrupted by route push', (tester) async { | 2 | + // testWidgets('Back swipe dismiss interrupted by route push', |
| 3 | + // (tester) async { | ||
| 3 | // // final scaffoldKey = GlobalKey(); | 4 | // // final scaffoldKey = GlobalKey(); |
| 4 | 5 | ||
| 5 | // await tester.pumpWidget( | 6 | // await tester.pumpWidget( |
| @@ -59,7 +60,8 @@ void main() { | @@ -59,7 +60,8 @@ void main() { | ||
| 59 | // expect(find.text('push'), findsOneWidget); | 60 | // expect(find.text('push'), findsOneWidget); |
| 60 | // expect( | 61 | // expect( |
| 61 | // tester.getTopLeft(find.ancestor( | 62 | // tester.getTopLeft(find.ancestor( |
| 62 | - // of: find.text('push'), matching: find.byType(CupertinoPageScaffold))), | 63 | + // of: find.text('push'), |
| 64 | + // matching: find.byType(CupertinoPageScaffold))), | ||
| 63 | // Offset.zero, | 65 | // Offset.zero, |
| 64 | // ); | 66 | // ); |
| 65 | // expect(find.text('route'), findsNothing); | 67 | // expect(find.text('route'), findsNothing); |
-
Please register or login to post a comment