forked from AppFlowy-IO/AppFlowy
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flutter_desktop): colored column names in kanban board (AppFlowy…
…-IO#6270) * feat: colored column names in kanban board * fix: rename group event * chore: add comment for rough design * chore: revert unintentional changes * fix: use new colors and use new delete confirmation dialog
- Loading branch information
1 parent
f597727
commit eea3004
Showing
23 changed files
with
471 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
frontend/appflowy_flutter/lib/plugins/database/board/application/column_header_bloc.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...flutter/lib/plugins/database/board/presentation/widgets/board_checkbox_column_header.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import 'package:appflowy/generated/flowy_svgs.g.dart'; | ||
import 'package:appflowy/plugins/database/application/database_controller.dart'; | ||
import 'package:appflowy/plugins/database/board/application/board_bloc.dart'; | ||
import 'package:appflowy/plugins/database/board/group_ext.dart'; | ||
import 'package:appflowy_board/appflowy_board.dart'; | ||
import 'package:flowy_infra_ui/flowy_infra_ui.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'board_column_header.dart'; | ||
|
||
class CheckboxColumnHeader extends StatelessWidget { | ||
const CheckboxColumnHeader({ | ||
super.key, | ||
required this.databaseController, | ||
required this.groupData, | ||
}); | ||
|
||
final DatabaseController databaseController; | ||
final AppFlowyGroupData groupData; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final customData = groupData.customData as GroupData; | ||
return Row( | ||
children: [ | ||
FlowySvg( | ||
customData.asCheckboxGroup()!.isCheck | ||
? FlowySvgs.check_filled_s | ||
: FlowySvgs.uncheck_s, | ||
blendMode: BlendMode.dst, | ||
size: const Size.square(18), | ||
), | ||
const HSpace(6), | ||
Expanded( | ||
child: FlowyText.medium( | ||
customData.group.generateGroupName(databaseController), | ||
overflow: TextOverflow.ellipsis, | ||
), | ||
), | ||
const HSpace(6), | ||
GroupOptionsButton( | ||
groupData: groupData, | ||
), | ||
const HSpace(4), | ||
CreateCardFromTopButton( | ||
groupId: groupData.id, | ||
), | ||
], | ||
); | ||
} | ||
} |
Oops, something went wrong.