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
Nipodemos
2020-06-30 20:52:10 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
befafc23187ed2e687e1e8e3419753726943e61d
befafc23
1 parent
8b99fbd3
fix methods, all require context
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
20 deletions
README.md
README.md
View file @
befafc2
...
...
@@ -301,53 +301,63 @@ GetPlatform.isWeb
Get
.
height
Get
.
width
// gives you the power to define half the screen now, a third of it and so on. A dynamic width/heigth
//Useful for responsive applications.
// param dividedBy (double) optional - default: 1
// param reducedBy (double) optional - default: 0
Get
.
context
.
heightTransformer
()
Get
.
context
.
widthTransformer
()
// Gives the context of the screen in the foreground anywhere in your code.
Get
.
context
// Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
Get
.
contextOverlay
/// similar to MediaQuery.of(this).padding
Get
.
mediaQueryPadding
()
/// similar to MediaQuery.of(context).size
Get
.
context
.
mediaQuerySize
()
/// similar to MediaQuery.of(context).padding
Get
.
context
.
mediaQueryPadding
()
/// similar to MediaQuery.of(this).viewPadding
Get
.
mediaQueryViewPadding
()
/// similar to MediaQuery.of(context).viewPadding
Get
.
context
.
mediaQueryViewPadding
()
/// similar to MediaQuery.of(this).viewInsets;
Get
.
mediaQueryViewInsets
()
/// similar to MediaQuery.of(context).viewInsets;
Get
.
context
.
mediaQueryViewInsets
()
/// similar to MediaQuery.of(this).orientation;
Get
.
orientation
()
/// similar to MediaQuery.of(context).orientation;
Get
.
context
.
orientation
()
/// check if device is on landscape mode
Get
.
isLandscape
()
Get
.
context
.
isLandscape
()
/// check if device is on portrait mode
Get
.
isPortrait
()
Get
.
context
.
isPortrait
()
/// similar to MediaQuery.of(this).devicePixelRatio;
Get
.
devicePixelRatio
()
/// similar to MediaQuery.of(context).devicePixelRatio;
Get
.
context
.
devicePixelRatio
()
/// similar to MediaQuery.of(this).textScaleFactor;
Get
.
textScaleFactor
()
/// similar to MediaQuery.of(context).textScaleFactor;
Get
.
context
.
textScaleFactor
()
/// get the shortestSide from screen
Get
.
mediaQueryShortestSide
()
Get
.
context
.
mediaQueryShortestSide
()
/// True if width be larger than 800
Get
.
showNavbar
()
Get
.
context
.
showNavbar
()
/// True if the shortestSide is smaller than 600p
Get
.
isPhone
()
Get
.
context
.
isPhone
()
/// True if the shortestSide is largest than 600p
Get
.
isSmallTablet
()
Get
.
context
.
isSmallTablet
()
/// True if the shortestSide is largest than 720p
Get
.
isLargeTablet
()
Get
.
context
.
isLargeTablet
()
/// True if the current device is Tablet
Get
.
isTablet
()
Get
.
context
.
isTablet
()
```
### Optional Global Settings and Manual configurations
...
...
Please
register
or
login
to post a comment