diff --git a/frontend/app_flowy/lib/plugins/board/presentation/board_page.dart b/frontend/app_flowy/lib/plugins/board/presentation/board_page.dart index 26c44e52bf..3d109309d7 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/board_page.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/board_page.dart @@ -84,7 +84,6 @@ class BoardContent extends StatelessWidget { Widget _buildHeader( BuildContext context, AFBoardColumnHeaderData headerData) { return AppFlowyColumnHeader( - // icon: const Icon(Icons.lightbulb_circle), title: Flexible( fit: FlexFit.tight, child: FlowyText.medium( @@ -95,14 +94,14 @@ class BoardContent extends StatelessWidget { ), ), // addIcon: const Icon(Icons.add, size: 20), - moreIcon: SizedBox( - width: 20, - height: 20, - child: svgWidget( - 'grid/details', - color: context.read().iconColor, - ), - ), + // moreIcon: SizedBox( + // width: 20, + // height: 20, + // child: svgWidget( + // 'grid/details', + // color: context.read().iconColor, + // ), + // ), height: 50, margin: config.headerPadding, ); diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_checkbox_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_checkbox_cell.dart index 25aacb5678..8578f956d6 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_checkbox_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_checkbox_cell.dart @@ -41,9 +41,7 @@ class _BoardCheckboxCellState extends State { ? svgWidget('editor/editor_check') : svgWidget('editor/editor_uncheck'); return Padding( - padding: EdgeInsets.symmetric( - vertical: BoardSizes.cardCellVPading, - ), + padding: EdgeInsets.zero, child: Align( alignment: Alignment.centerLeft, child: FlowyIconButton( diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart index 7c7386696d..8896a32732 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart @@ -45,7 +45,7 @@ class _BoardDateCellState extends State { alignment: Alignment.centerLeft, child: Padding( padding: EdgeInsets.symmetric( - vertical: BoardSizes.cardCellVPading, + vertical: BoardSizes.cardCellVPadding, ), child: FlowyText.regular( state.dateStr, diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_number_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_number_cell.dart index 965c06e643..33fb4a9b4b 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_number_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_number_cell.dart @@ -42,7 +42,7 @@ class _BoardNumberCellState extends State { } else { return Padding( padding: - EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading), + EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding), child: Align( alignment: Alignment.centerLeft, child: FlowyText.medium( diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_select_option_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_select_option_cell.dart index 9865875e44..6cba08c636 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_select_option_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_select_option_cell.dart @@ -45,7 +45,8 @@ class _BoardSelectOptionCellState extends State { ) .toList(); return Padding( - padding: EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading), + padding: + EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding), child: Align( alignment: Alignment.centerLeft, child: AbsorbPointer( diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart index 89b193edc5..6f6e35429a 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart @@ -41,7 +41,7 @@ class _BoardTextCellState extends State { alignment: Alignment.centerLeft, child: Padding( padding: - EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading), + EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding), child: FlowyText.medium( state.content, fontSize: 14, diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart index 5940e71788..f687e7efeb 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart @@ -42,7 +42,7 @@ class _BoardUrlCellState extends State { } else { return Padding( padding: - EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading), + EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding), child: Align( alignment: Alignment.centerLeft, child: RichText( diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/card_container.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/card_container.dart index 4b8c0548d5..0e0a7287ae 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/card_container.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/card_container.dart @@ -74,6 +74,7 @@ class CardAccessoryContainer extends StatelessWidget { width: 26, height: 26, padding: const EdgeInsets.all(3), + decoration: _makeBoxDecoration(context), child: accessory, ), ); @@ -88,6 +89,23 @@ class CardAccessoryContainer extends StatelessWidget { } } +BoxDecoration _makeBoxDecoration(BuildContext context) { + final theme = context.read(); + final borderSide = BorderSide(color: theme.shader6, width: 1.0); + return BoxDecoration( + color: theme.surface, + border: Border.fromBorderSide(borderSide), + boxShadow: [ + BoxShadow( + color: theme.shader6, + spreadRadius: 0, + blurRadius: 2, + offset: Offset.zero) + ], + borderRadius: const BorderRadius.all(Radius.circular(6)), + ); +} + class _CardEnterRegion extends StatelessWidget { final Widget child; final List accessories; diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/define.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/define.dart index ced0fefb83..c2cff2ee0f 100644 --- a/frontend/app_flowy/lib/plugins/board/presentation/card/define.dart +++ b/frontend/app_flowy/lib/plugins/board/presentation/card/define.dart @@ -1,3 +1,3 @@ class BoardSizes { - static double get cardCellVPading => 4; + static double get cardCellVPadding => 4; } diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart index 6b937a3c9b..f045984e66 100644 --- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart +++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart @@ -91,12 +91,10 @@ class SelectOptionTag extends StatelessWidget { Widget build(BuildContext context) { return ChoiceChip( pressElevation: 1, - label: Flexible( - child: FlowyText.medium( - name, - fontSize: 12, - overflow: TextOverflow.clip, - ), + label: FlowyText.medium( + name, + fontSize: 12, + overflow: TextOverflow.clip, ), selectedColor: color, backgroundColor: color,