fix: center left the date cell of the grid

This commit is contained in:
appflowy 2022-09-20 16:23:35 +08:00
parent 2544aeb290
commit 370db4f71b

View File

@ -58,7 +58,7 @@ class _DateCellState extends GridCellState<GridDateCell> {
Widget build(BuildContext context) {
final alignment = widget.cellStyle != null
? widget.cellStyle!.alignment
: Alignment.center;
: Alignment.centerLeft;
return BlocProvider.value(
value: _cellBloc,
child: BlocBuilder<DateCellBloc, DateCellState>(
@ -77,7 +77,10 @@ class _DateCellState extends GridCellState<GridDateCell> {
cursor: SystemMouseCursors.click,
child: Align(
alignment: alignment,
child: FlowyText.medium(state.dateStr, fontSize: 12),
child: FlowyText.medium(
state.dateStr,
fontSize: 12,
),
),
),
),