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
jonataslaw
2019-11-15 16:17:42 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2019-11-15 16:17:42 -0300
Commit
2f30471996db7db7c4fe4d1e041aa81ce47a3806
2f304719
1 parent
88540929
Delete routes.dart
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
lib/src/routes.dart
lib/src/routes.dart
deleted
100644 → 0
View file @
8854092
import
'package:flutter/widgets.dart'
;
import
'material.dart'
;
class
Get
{
static
to
(
BuildContext
context
,
Widget
page
,
{
bool
rebuildRoutes
=
false
})
{
return
Navigator
.
push
(
context
,
GetRoute
(
opaque:
rebuildRoutes
,
builder:
(
BuildContext
context
)
=>
page
));
}
static
back
(
BuildContext
context
)
{
return
Navigator
.
pop
(
context
);
}
static
off
(
BuildContext
context
,
Widget
page
,
{
bool
rebuildRoutes
=
false
})
{
return
Navigator
.
pushReplacement
(
context
,
GetRoute
(
opaque:
rebuildRoutes
,
builder:
(
BuildContext
context
)
=>
page
));
}
static
offAll
(
BuildContext
context
,
Widget
page
,
RoutePredicate
predicate
,
{
bool
rebuildRoutes
=
false
})
{
return
Navigator
.
pushAndRemoveUntil
(
context
,
GetRoute
(
opaque:
rebuildRoutes
,
builder:
(
BuildContext
context
)
=>
page
),
predicate
);
}
}
Please
register
or
login
to post a comment