Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: 3620 unchecked checkbox color (#3685)
Sarthak Kimtani62f1d6eb82a0
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/board_page.dart b/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/board_page.dartindex 16cdcfe149..2ed9fa4e6f 100644--- a/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/board_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/board_page.dart@@ -381,14 +381,10 @@ Widget? _buildHeaderIcon(GroupData customData) {switch (customData.fieldType) {case FieldType.Checkbox:final group = customData.asCheckboxGroup()!;- if (group.isCheck) {- widget = const FlowySvg(- FlowySvgs.check_filled_s,- blendMode: BlendMode.dst,- );- } else {- widget = const FlowySvg(FlowySvgs.uncheck_s);- }+ widget = FlowySvg(+ group.isCheck ? FlowySvgs.check_filled_s : FlowySvgs.uncheck_s,+ blendMode: BlendMode.dst,+ );break;case FieldType.DateTime:case FieldType.LastEditedTime:diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dartindex f5bf4e63b4..b39ed584e5 100644--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart@@ -39,12 +39,11 @@ class _CheckboxCellState extends State<CheckboxCardCell> {buildWhen: (previous, current) =>previous.isSelected != current.isSelected,builder: (context, state) {- final icon = state.isSelected- ? const FlowySvg(- FlowySvgs.check_filled_s,- blendMode: BlendMode.dst,- )- : const FlowySvg(FlowySvgs.uncheck_s);+ final icon = FlowySvg(+ state.isSelected ? FlowySvgs.check_filled_s : FlowySvgs.uncheck_s,+ blendMode: BlendMode.dst,+ );+return Align(alignment: Alignment.centerLeft,child: Padding(diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dartindex dca3b7a291..a8e5509321 100644--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart@@ -116,6 +116,9 @@ class CheckboxCellUncheck extends StatelessWidget {@overrideWidget build(BuildContext context) {- return const FlowySvg(FlowySvgs.uncheck_s);+ return const FlowySvg(+ FlowySvgs.uncheck_s,+ blendMode: BlendMode.dst,+ );}}