Answers for "Flutter how to get percentage of device height"

0

Flutter how to get percentage of device height

You can use the FractionalSizedBox to size a widget based on percentages

https://api.flutter.dev/flutter/widgets/FractionallySizedBox-class.html

FractionallySizedBox(
                widthFactor: 1,
                heightFactor: 0.31,
                child: Container(
                 	...
                ),
              ),
Posted by: Guest on March-25-2022

Code answers related to "Flutter how to get percentage of device height"

Browse Popular Code Answers by Language