search

Get the screen size height and width in the flutter

₹105.00
Tax included

Get the screen size height and width in the flutter.

your widgets dimension do this:

Widget build(BuildContext context) {
    SizeConfig().init(context);
    return Container(
    height: SizeConfig.screenHeight* 10, //10 for example
    width: SizeConfig.screenWidth* 10, //10 for example
    );
}
 

Quantity

  Security policy

(edit with the Customer Reassurance module)

  Delivery policy

(edit with the Customer Reassurance module)

  Return policy

(edit with the Customer Reassurance module)

You have to create a custom class and according to the requirement we can customize it which we cannot do in the above method and we will create this class because wherever in the project Also if you want to use size this class has to be called Like :

Widget build(BuildContext context) {
    SizeConfig().init(context);
    return Container(
    height: SizeConfig.screenHeight* 10, //10 for example
    width: SizeConfig.screenWidth* 10, //10 for example
    );
}
 

1000 Items
chat Comments (0)
No customer reviews for the moment.