mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: DateCardCellState date formatting (#3387)
* fix: DateCardCellState date formatting * refactor: use string interpolation
This commit is contained in:
parent
c7af04b317
commit
aa25aa4474
@ -80,7 +80,11 @@ class DateCardCellState with _$DateCardCellState {
|
||||
String _dateStrFromCellData(DateCellDataPB? cellData) {
|
||||
String dateStr = "";
|
||||
if (cellData != null) {
|
||||
dateStr = "${cellData.date} ${cellData.time}";
|
||||
if (cellData.includeTime) {
|
||||
dateStr = '${cellData.date} ${cellData.time}';
|
||||
} else {
|
||||
dateStr = cellData.date;
|
||||
}
|
||||
}
|
||||
return dateStr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user