Easiest Set of widgets to build responsive apps with 12 Column Grid System in flutter.
Just use RRow and RCol insted of Row and Column
RCol(
gutter: RValue.all(5),
children: [
RRow(
gutter: RValue.all(5),
crossAxisAlignment: CrossAxisAlignment.end,
children: [
RCol(
invisible: RValue.belowLG(true),
decoration: BoxDecoration(color: Colors.pink),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 6, sm: 6, md: 6, lg: 4, xl: 2, xxl: 1),
children: [
Text("Hello"),
],
),
RCol(
invisible: RValue.aboveMD(true),
decoration: BoxDecoration(color: Colors.blue),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 6, sm: 6, md: 6, lg: 4, xl: 2, xxl: 1),
children: [
Text("Hello 2"),
],
),
RCol(
decoration: BoxDecoration(color: Colors.purple),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 3, sm: 3, md: 4, lg: 2, xl: 1, xxl: 1),
children: [
Text("Hello"),
],
),
RCol(
decoration: BoxDecoration(color: Colors.lightGreen),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 3, sm: 3, md: 2, lg: 6, xl: 9, xxl: 4),
children: [
Text("Hello"),
],
),
],
),
RRow(
gutter: RValue.all(5),
crossAxisAlignment: CrossAxisAlignment.end,
axis: RValue(xs: Axis.vertical),
children: [
RCol(
decoration: BoxDecoration(color: Colors.red),
spans: RValue(xs: 12, sm: 2, md: 4, lg: 2, xl: 1, xxl: 1),
padding: RValue.all(EdgeInsets.all(20.0)),
children: [
Text("Hello"),
],
),
RCol(
decoration: BoxDecoration(color: Colors.purple),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 6, sm: 2, md: 2, lg: 6, xl: 9, xxl: 4),
children: [
Text("Hello"),
],
),
RCol(
decoration: BoxDecoration(color: Colors.lightGreen),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 8, sm: 8, md: 6, lg: 4, xl: 2, xxl: 1),
children: [
Text("Hello"),
],
),
],
),
RRow(
gutter: RValue.all(5),
crossAxisAlignment: CrossAxisAlignment.end,
children: [
RCol(
decoration: BoxDecoration(color: Colors.red),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 6, sm: 8, md: 6, lg: 4, xl: 2, xxl: 1),
children: [
Text("Hello"),
],
),
RCol(
invisible: RValue.all(true),
decoration: BoxDecoration(color: Colors.purple),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 3, sm: 2, md: 4, lg: 2, xl: 1, xxl: 1),
children: [
Text("Hello 2"),
],
),
RCol(
decoration: BoxDecoration(color: Colors.lightGreen),
padding: RValue.all(EdgeInsets.all(20.0)),
spans: RValue(xs: 3, sm: 2, md: 2, lg: 6, xl: 9, xxl: 4),
children: [
Text("Hello"),
],
),
],
),
],
),
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.