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
Aniket Khote
2023-09-09 00:04:33 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c4ea27a42761385b8fc7635a9adbfbd11c220c7d
c4ea27a4
1 parent
4ec320cb
'SingletonFlutterWindow' is deprecated and shouldn't be used
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
c4ea27a
...
...
@@ -1171,14 +1171,14 @@ extension GetNavigationExt on GetInterface {
}
/// The window to which this binding is bound.
ui
.
SingletonFlutterWindow
get
window
=>
engine
.
window
;
ui
.
PlatformDispatcher
get
window
=>
engine
.
platformDispatcher
;
Locale
?
get
deviceLocale
=>
engine
.
window
.
locale
;
Locale
?
get
deviceLocale
=>
window
.
locale
;
///The number of device pixels for each logical pixel.
double
get
pixelRatio
=>
engine
.
window
.
devicePixelRatio
;
double
get
pixelRatio
=>
window
.
implicitView
!
.
devicePixelRatio
;
Size
get
size
=>
engine
.
window
.
physicalSize
/
pixelRatio
;
Size
get
size
=>
window
.
implicitView
!
.
physicalSize
/
pixelRatio
;
///The horizontal extent of this size.
double
get
width
=>
size
.
width
;
...
...
@@ -1188,14 +1188,14 @@ extension GetNavigationExt on GetInterface {
///The distance from the top edge to the first unpadded pixel,
///in physical pixels.
double
get
statusBarHeight
=>
engine
.
window
.
padding
.
top
;
double
get
statusBarHeight
=>
window
.
implicitView
!
.
padding
.
top
;
///The distance from the bottom edge to the first unpadded pixel,
///in physical pixels.
double
get
bottomBarHeight
=>
engine
.
window
.
padding
.
bottom
;
double
get
bottomBarHeight
=>
window
.
implicitView
!
.
padding
.
bottom
;
///The system-reported text scale.
double
get
textScaleFactor
=>
engine
.
window
.
textScaleFactor
;
double
get
textScaleFactor
=>
window
.
textScaleFactor
;
/// give access to TextTheme.of(context)
TextTheme
get
textTheme
=>
theme
.
textTheme
;
...
...
Please
register
or
login
to post a comment