Answers for "how to get the display size of mobile display in flutter"

0

how to get the display size of mobile display in flutter

getHeightWidth(context){
 
    double width = MediaQuery.of(context).size.width;
 
    double height = MediaQuery.of(context).size.height;
 
    setState(() {
     heightHolder = height.roundToDouble();
     widthHolder = width.roundToDouble() ; 
    });
 
  }
Posted by: Guest on August-05-2020

Code answers related to "how to get the display size of mobile display in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language