Skip to content

Commit 597ca4e

Browse files
committed
QUICKFIX ResponsiveRowColumn Defaults
*FIX Default ResponsiveRowColumnItem values. Null value was incorrectly passed. Pass default values instead.
1 parent ba33b1d commit 597ca4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/responsive_row_column.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ class ResponsiveRowColumnItem extends StatelessWidget {
155155
@override
156156
Widget build(BuildContext context) {
157157
if (rowColumn && (rowFlex != null || rowFit != null)) {
158-
return Flexible(flex: rowFlex, fit: rowFit, child: child);
158+
return Flexible(
159+
flex: rowFlex ?? 1, fit: rowFit ?? FlexFit.loose, child: child);
159160
} else if (!rowColumn && (columnFlex != null || columnFit != null)) {
160-
return Flexible(flex: columnFlex, fit: columnFit, child: child);
161+
return Flexible(
162+
flex: columnFlex ?? 1, fit: columnFit ?? FlexFit.loose, child: child);
161163
}
162164

163165
return child;

0 commit comments

Comments
 (0)