Skip to content

Commit 3e6c3c9

Browse files
committed
chore: enable create card from no status column
1 parent 68fdb58 commit 3e6c3c9

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

frontend/app_flowy/lib/plugins/board/presentation/board_page.dart

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -186,35 +186,31 @@ class _BoardContentState extends State<BoardContent> {
186186
}
187187

188188
Widget _buildFooter(BuildContext context, AppFlowyGroupData columnData) {
189-
final boardCustomData = columnData.customData as BoardCustomData;
190-
final group = boardCustomData.group;
191-
192-
if (group.isDefault) {
193-
return const SizedBox();
194-
} else {
195-
return AppFlowyGroupFooter(
196-
icon: SizedBox(
197-
height: 20,
198-
width: 20,
199-
child: svgWidget(
200-
"home/add",
201-
color: context.read<AppTheme>().iconColor,
202-
),
203-
),
204-
title: FlowyText.medium(
205-
LocaleKeys.board_column_create_new_card.tr(),
206-
fontSize: 14,
207-
color: context.read<AppTheme>().textColor,
189+
// final boardCustomData = columnData.customData as BoardCustomData;
190+
// final group = boardCustomData.group;
191+
192+
return AppFlowyGroupFooter(
193+
icon: SizedBox(
194+
height: 20,
195+
width: 20,
196+
child: svgWidget(
197+
"home/add",
198+
color: context.read<AppTheme>().iconColor,
208199
),
209-
height: 50,
210-
margin: config.footerPadding,
211-
onAddButtonClick: () {
212-
context.read<BoardBloc>().add(
213-
BoardEvent.createBottomRow(columnData.id),
214-
);
215-
},
216-
);
217-
}
200+
),
201+
title: FlowyText.medium(
202+
LocaleKeys.board_column_create_new_card.tr(),
203+
fontSize: 14,
204+
color: context.read<AppTheme>().textColor,
205+
),
206+
height: 50,
207+
margin: config.footerPadding,
208+
onAddButtonClick: () {
209+
context.read<BoardBloc>().add(
210+
BoardEvent.createBottomRow(columnData.id),
211+
);
212+
},
213+
);
218214
}
219215

220216
Widget _buildCard(

0 commit comments

Comments
 (0)