Answers for "mobile screen width and height 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

how to give width based on screen size flutter

dependencies:
  flutter:
    sdk: flutter
  # add flutter_ScreenUtil
  flutter_screenutil: ^0.4.2
Posted by: Guest on September-28-2020

Code answers related to "mobile screen width and height in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language