Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Volodymyr Buberenko
2020-12-08 16:09:10 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
90643976e5e3206354528420dc9b9150036f78b1
90643976
1 parent
cdae1101
Fix issues with offUntil test routes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
test/navigation/get_main_test.dart
test/navigation/get_main_test.dart
View file @
9064397
...
...
@@ -227,8 +227,9 @@ void main() {
testWidgets
(
"Get.offUntil removes previous routes if they don't match predicate"
,
(
tester
)
async
{
await
tester
.
pumpWidget
(
Wrapper
(
child:
FirstScreen
()));
await
tester
.
pumpWidget
(
Wrapper
(
child:
Container
()));
Get
.
to
(
FirstScreen
());
Get
.
to
(
SecondScreen
());
Get
.
offUntil
(
GetPageRoute
(
page:
()
=>
ThirdScreen
()),
(
route
)
=>
(
route
as
GetPageRoute
).
routeName
==
'/FirstScreen'
);
...
...
Please
register
or
login
to post a comment