Skip to content

Commit a204af9

Browse files
committed
chore: enable create card from no status column
1 parent 4961236 commit a204af9

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
@@ -187,35 +187,31 @@ class _BoardContentState extends State<BoardContent> {
187187
}
188188

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

221217
Widget _buildCard(

0 commit comments

Comments
 (0)