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;
 
PREVIOUS NEXT
Tagged: #height #Screen #device
ADD COMMENT
Topic
Name
2+8 =