Showing
1 changed file
with
3 additions
and
1 deletions
@@ -214,7 +214,9 @@ void main() { | @@ -214,7 +214,9 @@ void main() { | ||
214 | }); | 214 | }); |
215 | 215 | ||
216 | testWidgets("Get.offUntil navigates to provided route", (tester) async { | 216 | testWidgets("Get.offUntil navigates to provided route", (tester) async { |
217 | - await tester.pumpWidget(Wrapper(child: FirstScreen())); | 217 | + await tester.pumpWidget(Wrapper(child: Container())); |
218 | + | ||
219 | + Get.to(FirstScreen()); | ||
218 | 220 | ||
219 | Get.offUntil(GetPageRoute(page: () => ThirdScreen()), | 221 | Get.offUntil(GetPageRoute(page: () => ThirdScreen()), |
220 | (route) => (route as GetPageRoute).routeName == '/FirstScreen'); | 222 | (route) => (route as GetPageRoute).routeName == '/FirstScreen'); |
-
Please register or login to post a comment