Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter: get height of Screen device

// All height of screen
double screenHeight = MediaQuery.of(context).size.height

// height of screen only
double screenHeight = MediaQuery.of(context).size.height -
    MediaQuery.of(context).padding.top -
    kToolbarHeight -
    kBottomNavigationBarHeight;
Source by flutterhq.com #
 
PREVIOUS NEXT
Tagged: #height #Screen #device
ADD COMMENT
Topic
Name
6+5 =