|
@@ -20,6 +20,7 @@ class RowCard<CustomCardData> extends StatefulWidget {
|
|
final RowMetaPB rowMeta;
|
|
final RowMetaPB rowMeta;
|
|
final String viewId;
|
|
final String viewId;
|
|
final String? groupingFieldId;
|
|
final String? groupingFieldId;
|
|
|
|
+ final String? groupId;
|
|
|
|
|
|
/// Allows passing a custom card data object to the card. The card will be
|
|
/// Allows passing a custom card data object to the card. The card will be
|
|
/// returned in the [CardCellBuilder] and can be used to build the card.
|
|
/// returned in the [CardCellBuilder] and can be used to build the card.
|
|
@@ -49,6 +50,7 @@ class RowCard<CustomCardData> extends StatefulWidget {
|
|
required this.rowMeta,
|
|
required this.rowMeta,
|
|
required this.viewId,
|
|
required this.viewId,
|
|
this.groupingFieldId,
|
|
this.groupingFieldId,
|
|
|
|
+ this.groupId,
|
|
required this.isEditing,
|
|
required this.isEditing,
|
|
required this.rowCache,
|
|
required this.rowCache,
|
|
required this.cellBuilder,
|
|
required this.cellBuilder,
|
|
@@ -137,7 +139,7 @@ class _RowCardState<T> extends State<RowCard<T>> {
|
|
} else {
|
|
} else {
|
|
return [
|
|
return [
|
|
_CardEditOption(rowNotifier: rowNotifier),
|
|
_CardEditOption(rowNotifier: rowNotifier),
|
|
- _CardMoreOption(),
|
|
|
|
|
|
+ CardMoreOption(),
|
|
];
|
|
];
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -180,6 +182,7 @@ class _RowCardState<T> extends State<RowCard<T>> {
|
|
return RowActions(
|
|
return RowActions(
|
|
viewId: context.read<CardBloc>().viewId,
|
|
viewId: context.read<CardBloc>().viewId,
|
|
rowId: context.read<CardBloc>().rowMeta.id,
|
|
rowId: context.read<CardBloc>().rowMeta.id,
|
|
|
|
+ groupId: widget.groupId,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -269,8 +272,8 @@ class _CardContent<CustomCardData> extends StatelessWidget {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-class _CardMoreOption extends StatelessWidget with CardAccessory {
|
|
|
|
- _CardMoreOption({Key? key}) : super(key: key);
|
|
|
|
|
|
+class CardMoreOption extends StatelessWidget with CardAccessory {
|
|
|
|
+ CardMoreOption({Key? key}) : super(key: key);
|
|
|
|
|
|
@override
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|