fractionallySized method
Widget
fractionallySized({
- required double widthFactor,
- required double heightFactor,
- AlignmentGeometry alignment = Alignment.center,
- Key? key,
A widget that sizes its child to a fraction of the total available space.
Implementation
Widget fractionallySized({
required double widthFactor,
required double heightFactor,
AlignmentGeometry alignment = Alignment.center,
Key? key,
}) {
return FractionallySizedBox(
key: key,
widthFactor: widthFactor,
heightFactor: heightFactor,
alignment: alignment,
child: this,
);
}