Skip to content

Commit f43b84e

Browse files
feat: default children row and column
1 parent 231e208 commit f43b84e

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

lib/src/widgets/column/attributes/attributes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ColumnAttributes with _$ColumnAttributes {
1515
FluveraEnumAttributeValue<MainAxisAlignment> mainAxisAlignment,
1616
@Default(FluveraEnumAttributeValue<CrossAxisAlignment>(value: 'center'))
1717
FluveraEnumAttributeValue<CrossAxisAlignment> crossAxisAlignment,
18-
@FluveraWidgetConverter() required List<Widget> children,
18+
@Default(<Widget>[]) @FluveraWidgetConverter() List<Widget> children,
1919
}) = _ColumnAttributes;
2020

2121
factory ColumnAttributes.fromJson(Map<String, dynamic> json) =>

lib/src/widgets/column/attributes/attributes.freezed.dart

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/widgets/column/attributes/attributes.g.dart

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/widgets/row/attributes/attributes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class RowAttributes with _$RowAttributes {
1515
FluveraEnumAttributeValue<MainAxisAlignment> mainAxisAlignment,
1616
@Default(FluveraEnumAttributeValue(value: 'center'))
1717
FluveraEnumAttributeValue<CrossAxisAlignment> crossAxisAlignment,
18-
@FluveraWidgetConverter() required List<Widget> children,
18+
@Default(<Widget>[]) @FluveraWidgetConverter() List<Widget> children,
1919
}) = _RowAttributes;
2020

2121
factory RowAttributes.fromJson(Map<String, dynamic> json) =>

lib/src/widgets/row/attributes/attributes.freezed.dart

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/widgets/row/attributes/attributes.g.dart

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)