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
Jonny Borges
2020-03-30 18:58:35 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-03-30 18:58:35 -0300
Commit
43887da4c8ebe8a58e8599e81284c2223249d902
43887da4
1 parent
be1fd0a8
Update routes.dart
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
lib/src/routes.dart
lib/src/routes.dart
View file @
43887da
import
'dart:io'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/scheduler.dart'
;
import
'backdrop_blur.dart'
;
import
'bottomsheet.dart'
;
import
'dialog.dart'
;
import
'getroute_cupertino.dart'
;
import
'snack.dart'
;
import
'getroute.dart'
;
import
'transitions_type.dart'
;
import
'transparent_route.dart'
;
import
'package:get/src/dialog/dialog.dart'
;
import
'package:get/get.dart'
;
import
'routes/blur/backdrop_blur.dart'
;
import
'routes/blur/transparent_route.dart'
;
class
Get
{
static
Get
_get
;
...
...
@@ -56,7 +50,7 @@ class Get {
// if (key.currentState.mounted) // add this if appear problems on future with route navigate
// when widget don't mounted
return
Platform
.
isIOS
return
Get
Platform
.
isIOS
?
key
.
currentState
.
push
(
GetCupertino
(
opaque:
rebuildRoutes
??
true
,
page:
page
,
...
...
@@ -377,23 +371,13 @@ class Get {
});
}
static
BuildContext
context
()
{
return
key
.
currentContext
;
}
static
BuildContext
get
context
=>
key
.
currentContext
;
static
ThemeData
theme
()
{
return
Theme
.
of
(
context
());
}
static
ThemeData
get
theme
=>
Theme
.
of
(
context
);
static
Color
iconColor
()
{
return
Theme
.
of
(
context
()).
iconTheme
.
color
;
}
static
Color
get
iconColor
=>
Theme
.
of
(
context
).
iconTheme
.
color
;
static
double
height
()
{
return
MediaQuery
.
of
(
context
()).
size
.
height
;
}
static
double
get
height
=>
MediaQuery
.
of
(
context
).
size
.
height
;
static
double
width
()
{
return
MediaQuery
.
of
(
context
()).
size
.
width
;
}
static
double
get
width
=>
MediaQuery
.
of
(
context
).
size
.
width
;
}
...
...
Please
register
or
login
to post a comment