mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: 3620 unchecked checkbox color (#3685)
This commit is contained in:
@ -381,14 +381,10 @@ Widget? _buildHeaderIcon(GroupData customData) {
|
|||||||
switch (customData.fieldType) {
|
switch (customData.fieldType) {
|
||||||
case FieldType.Checkbox:
|
case FieldType.Checkbox:
|
||||||
final group = customData.asCheckboxGroup()!;
|
final group = customData.asCheckboxGroup()!;
|
||||||
if (group.isCheck) {
|
widget = FlowySvg(
|
||||||
widget = const FlowySvg(
|
group.isCheck ? FlowySvgs.check_filled_s : FlowySvgs.uncheck_s,
|
||||||
FlowySvgs.check_filled_s,
|
blendMode: BlendMode.dst,
|
||||||
blendMode: BlendMode.dst,
|
);
|
||||||
);
|
|
||||||
} else {
|
|
||||||
widget = const FlowySvg(FlowySvgs.uncheck_s);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case FieldType.DateTime:
|
case FieldType.DateTime:
|
||||||
case FieldType.LastEditedTime:
|
case FieldType.LastEditedTime:
|
||||||
|
@ -39,12 +39,11 @@ class _CheckboxCellState extends State<CheckboxCardCell> {
|
|||||||
buildWhen: (previous, current) =>
|
buildWhen: (previous, current) =>
|
||||||
previous.isSelected != current.isSelected,
|
previous.isSelected != current.isSelected,
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
final icon = state.isSelected
|
final icon = FlowySvg(
|
||||||
? const FlowySvg(
|
state.isSelected ? FlowySvgs.check_filled_s : FlowySvgs.uncheck_s,
|
||||||
FlowySvgs.check_filled_s,
|
blendMode: BlendMode.dst,
|
||||||
blendMode: BlendMode.dst,
|
);
|
||||||
)
|
|
||||||
: const FlowySvg(FlowySvgs.uncheck_s);
|
|
||||||
return Align(
|
return Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -116,6 +116,9 @@ class CheckboxCellUncheck extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const FlowySvg(FlowySvgs.uncheck_s);
|
return const FlowySvg(
|
||||||
|
FlowySvgs.uncheck_s,
|
||||||
|
blendMode: BlendMode.dst,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user