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,
|
||||
required this.onChanged,
|
||||
required this.includeTime,
|
||||
this.showIcon = true,
|
||||
});
|
||||
|
||||
final Function(bool value) onChanged;
|
||||
final bool includeTime;
|
||||
final bool showIcon;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -254,11 +256,13 @@ class IncludeTimeButton extends StatelessWidget {
|
||||
padding: GridSize.typeOptionContentInsets,
|
||||
child: Row(
|
||||
children: [
|
||||
FlowySvg(
|
||||
FlowySvgs.clock_alarm_s,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const HSpace(6),
|
||||
if (showIcon) ...[
|
||||
FlowySvg(
|
||||
FlowySvgs.clock_alarm_s,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const HSpace(6),
|
||||
],
|
||||
FlowyText(LocaleKeys.grid_field_includeTime.tr()),
|
||||
const Spacer(),
|
||||
Toggle(
|
||||
|
@ -30,6 +30,8 @@ class TimestampTypeOptionEditorFactory implements TypeOptionEditorFactory {
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: IncludeTimeButton(
|
||||
includeTime: typeOption.includeTime,
|
||||
showIcon: false,
|
||||
onChanged: (value) {
|
||||
final newTypeOption = _updateTypeOption(
|
||||
typeOption: typeOption,
|
||||
@ -37,7 +39,6 @@ class TimestampTypeOptionEditorFactory implements TypeOptionEditorFactory {
|
||||
);
|
||||
onTypeOptionUpdated(newTypeOption.writeToBuffer());
|
||||
},
|
||||
includeTime: typeOption.includeTime,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user