RowWidgetExtension extension
Extension on Widget that provides a convenient method for wrapping a single widget in a Row.
This extension is useful when you need to convert a single widget into a Row layout, typically for consistency with other parts of your UI or to prepare for adding more children later.
Example usage:
Text('Single item').row()
- on
Methods
-
row(
{MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, double spacing = 0, TextBaseline? textBaseline}) → Row -
Available on Widget, provided by the RowWidgetExtension extension
Creates a Row widget containing this widget as the only child.