Volodymyr Buberenko

Fix wrong cast in Get.offUntil test

@@ -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');