MFlexible class
Gives child a proportional share of the free space along its parent's main axis. Only meaningful as a direct child of an MRow or MColumn.
Two children with flex: 1 split the room evenly; flex: 2 beside flex: 1
takes twice as much.
Platform limit: Android honours the exact ratio via layout_weight.
SwiftUI has no proportional flex, so on iOS every MFlexible sibling shares
the space equally regardless of its flex value — flex: 1 behaves the
same on both, while other ratios only take effect on Android. Use explicit
MSizedBox sizes when a ratio has to hold on both platforms.
Named MFlexible rather than MExpanded because MExpanded already names
the Dynamic Island's expanded region.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited