mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: fix edit bugs
This commit is contained in:
parent
a9f5f8d508
commit
349f599a43
@ -78,7 +78,7 @@ class _BoardTextCellState extends State<BoardTextCell> {
|
|||||||
child: BlocBuilder<BoardTextCellBloc, BoardTextCellState>(
|
child: BlocBuilder<BoardTextCellBloc, BoardTextCellState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
Widget child;
|
Widget child;
|
||||||
if (state.content.isEmpty) {
|
if (state.content.isEmpty && state.enableEdit == false) {
|
||||||
child = const SizedBox();
|
child = const SizedBox();
|
||||||
} else {
|
} else {
|
||||||
if (state.enableEdit) {
|
if (state.enableEdit) {
|
||||||
|
@ -98,13 +98,17 @@ class _BoardCardState extends State<BoardCard> {
|
|||||||
widget.isEditing,
|
widget.isEditing,
|
||||||
cellNotifier,
|
cellNotifier,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (index == 0) {
|
||||||
rowNotifier.insertCell(cellId, cellNotifier);
|
rowNotifier.insertCell(cellId, cellNotifier);
|
||||||
|
}
|
||||||
|
|
||||||
child = Padding(
|
child = Padding(
|
||||||
key: cellId.key(),
|
key: cellId.key(),
|
||||||
padding: const EdgeInsets.only(left: 4, right: 4),
|
padding: const EdgeInsets.only(left: 4, right: 4),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|
||||||
children.add(child);
|
children.add(child);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user