Answers for "how to manage the size with the device 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
0

flutter get device width

double width = MediaQuery.of(context).size.width;
Posted by: Guest on November-14-2021

Code answers related to "how to manage the size with the device in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language