measure method
({double flex, double width})
measure(
- Widget child,
- Context context,
- BoxConstraints constraints
override
Intrinsic or fixed contribution before flex distribution.
Implementation
@override
({double width, double flex}) measure(
Widget child,
Context context,
BoxConstraints constraints,
) {
final double w =
constraints.hasBoundedWidth ? constraints.maxWidth * value : 0;
return (width: w, flex: 0);
}