
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
);
(edit with the Customer Reassurance module)
(edit with the Customer Reassurance module)
(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
);