Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to check screen orientation in flutter

if (MediaQuery.of(context).orientation == Orientation.portrait){
    // is portrait
}else{
// is landscape
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #screen #orientation #flutter
ADD COMMENT
Topic
Name
4+8 =