File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
frontend/app_flowy/lib/plugins/board/presentation/card Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class _BoardTextCellState extends State<BoardTextCell> {
7878 child: BlocBuilder <BoardTextCellBloc , BoardTextCellState >(
7979 builder: (context, state) {
8080 Widget child;
81- if (state.content.isEmpty) {
81+ if (state.content.isEmpty && state.enableEdit == false ) {
8282 child = const SizedBox ();
8383 } else {
8484 if (state.enableEdit) {
Original file line number Diff line number Diff line change @@ -98,13 +98,17 @@ class _BoardCardState extends State<BoardCard> {
9898 widget.isEditing,
9999 cellNotifier,
100100 );
101- rowNotifier.insertCell (cellId, cellNotifier);
101+
102+ if (index == 0 ) {
103+ rowNotifier.insertCell (cellId, cellNotifier);
104+ }
102105
103106 child = Padding (
104107 key: cellId.key (),
105108 padding: const EdgeInsets .only (left: 4 , right: 4 ),
106109 child: child,
107110 );
111+
108112 children.add (child);
109113 },
110114 );
You can’t perform that action at this time.
0 commit comments