ReactiveRowCol class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ReactiveRowCol
- Available extensions
Constructors
-
ReactiveRowCol({Key? key, required bool rowWhen(double screenWidth), required bool colWhen(double screenWidth), required List<
Widget> children(bool isRow, bool isCol), MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start, MainAxisAlignment colMainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.start, CrossAxisAlignment colCrossAxisAlignment = CrossAxisAlignment.start, MainAxisSize rowMainAxisSize = MainAxisSize.max, MainAxisSize colMainAxisSize = MainAxisSize.max, VerticalDirection rowVerticalDirection = VerticalDirection.down, VerticalDirection colVerticalDirection = VerticalDirection.down, TextBaseline? rowTextbaseline, TextBaseline? colTextbaseline, TextDirection? rowTextDirection, TextDirection? colTextDirection, Key? rowKey, Key? colKey}) -
The code snippet is defining a constructor for the
ReactiveRowColclass in Dart.const
Properties
-
children
→ List<
Widget> Function(bool isRow, bool isCol) -
The
childrenis a function parameter that takes two boolean parametersisRowandisCol. It is a callback function that is responsible for building and returning a list of widgets based on the values ofisRowandisCol.final - colCrossAxisAlignment → CrossAxisAlignment
-
The
colCrossAxisAlignmentis used to specify how the children should be aligned along the cross axis when arranged in a column. TheCrossAxisAlignmentenum provides different options for alignment, such asstart,end,center,stretch, andbaseline. The value ofcolCrossAxisAlignmentwill be used when the children are arranged in a column.final - colKey → Key?
-
final
- colMainAxisAlignment → MainAxisAlignment
-
colMainAxisAlignmentof typeMainAxisAlignment. This variable is used to specify how the children should be aligned along the main axis when arranged in a column. TheMainAxisAlignmentenum provides different options for alignment, such asstart,end,center,spaceBetween,spaceAround, andspaceEvenly. The value ofcolMainAxisAlignmentwill be used when the children are arranged in a column.final - colMainAxisSize → MainAxisSize
-
The
colMainAxisSizeis a variable that is used to specify the size of theColumnwidget along its main axis. It is of typeMainAxisSize, which is an enum that provides two options:MainAxisSize.maxandMainAxisSize.min.final - colTextbaseline → TextBaseline?
-
The
colTextbaselinevariable is used to specify the baseline alignment for the text within theColumnwidget. It accepts a value of typeTextBaseline, which can be one of the following options:final - colTextDirection → TextDirection?
-
The
colTextDirectionvariable is used to specify the direction of the text within theColumnwidget. It accepts a value of typeTextDirection, which can be eitherTextDirection.ltr(left-to-right) orTextDirection.rtl(right-to-left). By setting the value ofcolTextDirection, you can control the direction of the text within theColumnwidget.final - colVerticalDirection → VerticalDirection
-
The
colVerticalDirectionvariable is used to specify the vertical direction in which the children should be laid out when arranged in a column. It accepts a value of typeVerticalDirection, which can be eitherdownorup. Thedownvalue indicates that the children should be laid out from top to bottom, while theupvalue indicates that the children should be laid out from bottom to top.final - colWhen → bool Function(double screenWidth)
-
The
colWhenis a function parameter that takes adoublevalue representing the screen width and returns aboolvalue. It is used to determine at what point of the screen width the children should be arranged in column form. The function should returntruewhen the condition for arranging the children in column form is satisfied, andfalseotherwise.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- rowCrossAxisAlignment → CrossAxisAlignment
-
rowCrossAxisAlignmentof typeCrossAxisAlignment. This variable is used to specify how the children should be aligned along the cross axis when arranged in a row. TheCrossAxisAlignmentenum provides different options for alignment, such asstart,end,center,stretch, andbaseline. The value ofrowCrossAxisAlignmentwill be used when the children are arranged in a row.final - rowKey → Key?
-
final
- rowMainAxisAlignment → MainAxisAlignment
-
The
rowMainAxisAlignmentis used to specify how the children should be aligned along the main axis when arranged in a row. TheMainAxisAlignmentenum provides different options for alignment, such asstart,end,center,spaceBetween,spaceAround, andspaceEvenly. The value ofrowMainAxisAlignmentwill be used when the children are arranged in a row.final - rowMainAxisSize → MainAxisSize
-
The
rowMainAxisSizevariable is used to specify the size of theRowwidget along its main axis. It is of typeMainAxisSize, which is an enum that provides two options:MainAxisSize.maxandMainAxisSize.min.final - rowTextbaseline → TextBaseline?
-
The
rowTextbaselineis a variable that is used to specify the baseline alignment for the text within theRowwidget. It accepts a value of typeTextBaseline, which can be one of the following options:final - rowTextDirection → TextDirection?
-
The
rowTextDirectionvariable is used to specify the direction of the text within theRowwidget. It accepts a value of typeTextDirection, which can be eitherTextDirection.ltr(left-to-right) orTextDirection.rtl(right-to-left). By setting the value ofrowTextDirection, you can control the direction of the text within theRowwidget.final - rowVerticalDirection → VerticalDirection
-
The
rowVerticalDirectionparameter is used to specify the vertical direction in which the children should be laid out when arranged in a row. It accepts a value of typeVerticalDirection, which can be eitherdownorup. Thedownvalue indicates that the children should be laid out from top to bottom, while theupvalue indicates that the children should be laid out from bottom to top.final - rowWhen → bool Function(double screenWidth)
-
The
rowWhenparameter is a function that takes adoublevalue representing the screen width and returns aboolvalue. It is used to determine at what point of the screen width the children should be arranged in a row form.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
algn(
{double? hf, double? wf, Al al = Al.c}) → Align -
Available on Widget, provided by the AlignCntrExt extension
The functionalgnreturns anAlignwidget with specified alignment, height factor, width factor, and child. -
asptRto(
double aspectRatio) → AspectRatio -
Available on Widget, provided by the AspectRatioExt extension
The functionasptRtoreturns anAspectRatiowidget with a specified aspect ratio and child widget. -
build(
BuildContext context) → Widget -
The function builds a widget based on the current width of the screen, either a Row or a Column,
depending on the conditions specified.
override
-
cntr(
{double? hf, double? wf}) → Center -
Available on Widget, provided by the AlignCntrExt extension
The functioncntrtakes in optional parametershfandwfand returns aCenterwidget with the specified height and width factors, and the child widget. -
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
expd(
{int flex = 1}) → Expanded -
Available on Widget, provided by the ExpandedExt extension
The functionexpdreturns anExpandedwidget with a specified flex value and child widget. -
expdH(
) → SizedBox -
Available on Widget, provided by the ExpandedExt extension
The functionexpdHreturns aSizedBoxwidget with a height ofdouble.infinityand a child widget wrapped in anExpandedwidget. -
expdW(
) → SizedBox -
Available on Widget, provided by the ExpandedExt extension
The functionexpdWreturns aSizedBoxwidget with the width set todouble.infinityand a child widget wrapped in anExpandedwidget. -
fitdbx(
{Al al = Al.c, Clip clpbhvr = Clip.antiAlias, BoxFit fit = BoxFit.contain, Key? key}) → FittedBox -
Available on Widget, provided by the FittedBoxExt extension
The functionfitdbxreturns aFittedBoxwidget with specified alignment, clip behavior, fit, and child. -
flxbl(
{FlexFit fit = FlexFit.loose, int flex = 1}) → Flexible -
Available on Widget, provided by the ExpandedExt extension
The functionflxblreturns aFlexiblewidget with specifiedfitandflexproperties, and the child widget. -
fracSzdBox(
{double? hf, double? wf, Al al = Al.c}) → FractionallySizedBox -
Available on Widget, provided by the FracSzdBox extension
ThefracSzdBoxfunction returns aFractionallySizedBoxwidget with optional height and width factors and alignment. -
limtdbx(
{double mxH = double.infinity, double mxW = double.infinity}) → LimitedBox -
Available on Widget, provided by the LimitedBoxExt extension
The functionlimtdbxreturns aLimitedBoxwidget with specified maximum height and width, and the child widget as its child. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
p(
double val) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpreturns aPaddingwidget with a specified padding value and the child widget. -
p12(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionp12returns aPaddingwidget with a padding of 12 pixels on all sides and the child widget passed to it. -
p16(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionp16returns aPaddingwidget with a padding of 16 pixels on all sides and the child widget passed to it. -
p20(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionp20returns aPaddingwidget with a padding of 20 pixels on all sides and the child widget passed to it. -
p24(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionp24returns aPaddingwidget with a padding of 24.0 on all sides and the child widget as its child. -
ph(
double p) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionphreturns aPaddingwidget with horizontal padding ofpand the child widget. -
ph12(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionph12returns aPaddingwidget with horizontal padding of 12.0. -
ph16(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionph16returns aPaddingwidget with horizontal padding of 16.0. -
ph20(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionph20returns aPaddingwidget with a horizontal padding of 20. -
ph24(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The function adds horizontal padding of 24 pixels to a widget. -
pLRB(
{double p = 12.0, double? l, double? r, double? b}) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpLRBreturns aPaddingwidget with customizable padding values for left, right, and bottom, or a default value if not provided. -
pLRT(
{double p = 12.0, double? l, double? r, double? t}) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpLRTreturns aPaddingwidget with customizable padding values for left, right, and top, or a default value if not provided. -
pLTRB(
double l, double t, double r, double b) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpLTRBreturns aPaddingwidget with specified left, top, right, and bottom padding values. -
pOnly(
{double l = 0, double r = 0, double t = 0, double b = 0}) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpOnlyreturns aPaddingwidget with specified padding values for left, right, top, and bottom. -
pos(
{double? h, double? w, double? l, double? r, double? b, double? t, Key? key}) → Positioned -
Available on Widget, provided by the PositionedExt extension
Theposfunction returns aPositionedwidget with specified positioning properties and a child widget. -
psymtc(
{double h = 0.0, double v = 0.0}) → Padding -
Available on Widget, provided by the PaddingExt extension
Thepsymtcfunction returns aPaddingwidget with the specified horizontal and vertical padding values. -
pv(
double p) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpvreturns aPaddingwidget with vertical padding ofpand the child widget as its child. -
pv12(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpv12returns aPaddingwidget with a vertical padding of 12.0. -
pv16(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpv16returns aPaddingwidget with a vertical padding of 16.0. -
pv20(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The functionpv20returns aPaddingwidget with a vertical padding of 20. -
pv24(
) → Padding -
Available on Widget, provided by the PaddingExt extension
The function adds vertical padding of 24.0 units to a given widget. -
slivadapt(
{Key? key}) → SliverToBoxAdapter -
Available on Widget, provided by the SliverToBoxAdaptarExt extension
The functionslivadaptreturns aSliverToBoxAdapterwidget with the given key and child. -
szdbox(
{double? h, double? w}) → SizedBox -
Available on Widget, provided by the SizedBoxExtWidget extension
Theszdboxfunction returns aSizedBoxwidget with the specified height, width, and child. -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited