mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: reload card content
This commit is contained in:
@ -317,6 +317,9 @@ class GroupControllerDelegateImpl extends GroupControllerDelegate {
|
||||
|
||||
@override
|
||||
void updateRow(String groupId, RowPB row) {
|
||||
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
|
||||
// workaround: fix the board card reload timing issue.
|
||||
Future.delayed(const Duration(milliseconds: 300), () {
|
||||
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class BoardPluginBuilder implements PluginBuilder {
|
||||
|
||||
class BoardPluginConfig implements PluginConfig {
|
||||
@override
|
||||
bool get creatable => true;
|
||||
bool get creatable => false;
|
||||
}
|
||||
|
||||
class BoardPlugin extends Plugin {
|
||||
|
@ -35,19 +35,17 @@ class _BoardSelectOptionCellState extends State<BoardSelectOptionCell> {
|
||||
child: BlocBuilder<BoardSelectOptionCellBloc, BoardSelectOptionCellState>(
|
||||
builder: (context, state) {
|
||||
final children = state.selectedOptions
|
||||
.map((option) => SelectOptionTag.fromOption(
|
||||
context: context,
|
||||
option: option,
|
||||
))
|
||||
.map(
|
||||
(option) => SelectOptionTag.fromOption(
|
||||
context: context,
|
||||
option: option,
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
return Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: AbsorbPointer(
|
||||
child: Wrap(
|
||||
children: children,
|
||||
spacing: 4,
|
||||
runSpacing: 2,
|
||||
),
|
||||
child: Wrap(children: children, spacing: 4, runSpacing: 2),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
@ -42,7 +42,7 @@ class _BoardCardState extends State<BoardCard> {
|
||||
_cardBloc = BoardCardBloc(
|
||||
gridId: widget.gridId,
|
||||
dataController: widget.dataController,
|
||||
);
|
||||
)..add(const BoardCardEvent.initial());
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@ -79,6 +79,12 @@ class _BoardCardState extends State<BoardCard> {
|
||||
},
|
||||
).toList();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> dispose() async {
|
||||
_cardBloc.close();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
class _CardMoreOption extends StatelessWidget with CardAccessory {
|
||||
|
Reference in New Issue
Block a user