FractionallySizedBox

This widget motivated by FractionallySizedBox in Flutter.

A widget that sizes its child to a fraction of the total available space.

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

Props

alignment

Value: Alignment (default: Alignment.center)

widthFactor

Value: number | undefined

heightFoctor

Value: number | undefined

child

Value: Widget | undefined

Examples

Basic