Div.row constructor
Div.row(
- List<
Widget> ? children, { - Key? key,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- double? height,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Clip clipBehavior = Clip.none,
- GestureTapCallback? onTap,
- HitTestBehavior? behavior = HitTestBehavior.opaque,
Implementation
Div.row(
List<Widget>? children, {
Key? key,
AlignmentGeometry? alignment,
EdgeInsetsGeometry? padding,
Color? color,
Decoration? decoration,
Decoration? foregroundDecoration,
double? width,
double? height,
BoxConstraints? constraints,
EdgeInsetsGeometry? margin,
Matrix4? transform,
AlignmentGeometry? transformAlignment,
Clip clipBehavior = Clip.none,
// if the prop [onTap] not null, it will wrap the [child] with [GestureDetector]
// and the [onTap] will be used as the [GestureDetector.onTap]
GestureTapCallback? onTap,
// the gesture detector behavior
HitTestBehavior? behavior = HitTestBehavior.opaque,
}) : super(
key: key,
alignment: alignment,
padding: padding,
color: color,
decoration: decoration,
foregroundDecoration: foregroundDecoration,
width: width,
height: height,
constraints: constraints,
margin: margin,
transform: transform,
transformAlignment: transformAlignment,
child: onTap != null
? GestureDetector(
behavior: behavior,
onTap: onTap,
child: Row(
children: children ?? [],
),
)
: Row(
children: children ?? [],
),
clipBehavior: clipBehavior,
);