mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-06-27 02:50:15 +00:00
chore: remove include time icon for created at/last modified type option (#8031)
This commit is contained in:
parent
5eabaa7763
commit
a080cffc1d
@ -241,10 +241,12 @@ class IncludeTimeButton extends StatelessWidget {
|
|||||||
super.key,
|
super.key,
|
||||||
required this.onChanged,
|
required this.onChanged,
|
||||||
required this.includeTime,
|
required this.includeTime,
|
||||||
|
this.showIcon = true,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Function(bool value) onChanged;
|
final Function(bool value) onChanged;
|
||||||
final bool includeTime;
|
final bool includeTime;
|
||||||
|
final bool showIcon;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -254,11 +256,13 @@ class IncludeTimeButton extends StatelessWidget {
|
|||||||
padding: GridSize.typeOptionContentInsets,
|
padding: GridSize.typeOptionContentInsets,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
if (showIcon) ...[
|
||||||
FlowySvg(
|
FlowySvg(
|
||||||
FlowySvgs.clock_alarm_s,
|
FlowySvgs.clock_alarm_s,
|
||||||
color: Theme.of(context).iconTheme.color,
|
color: Theme.of(context).iconTheme.color,
|
||||||
),
|
),
|
||||||
const HSpace(6),
|
const HSpace(6),
|
||||||
|
],
|
||||||
FlowyText(LocaleKeys.grid_field_includeTime.tr()),
|
FlowyText(LocaleKeys.grid_field_includeTime.tr()),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Toggle(
|
Toggle(
|
||||||
|
@ -30,6 +30,8 @@ class TimestampTypeOptionEditorFactory implements TypeOptionEditorFactory {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: IncludeTimeButton(
|
child: IncludeTimeButton(
|
||||||
|
includeTime: typeOption.includeTime,
|
||||||
|
showIcon: false,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
final newTypeOption = _updateTypeOption(
|
final newTypeOption = _updateTypeOption(
|
||||||
typeOption: typeOption,
|
typeOption: typeOption,
|
||||||
@ -37,7 +39,6 @@ class TimestampTypeOptionEditorFactory implements TypeOptionEditorFactory {
|
|||||||
);
|
);
|
||||||
onTypeOptionUpdated(newTypeOption.writeToBuffer());
|
onTypeOptionUpdated(newTypeOption.writeToBuffer());
|
||||||
},
|
},
|
||||||
includeTime: typeOption.includeTime,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user