mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: center left the date cell of the grid
This commit is contained in:
parent
2544aeb290
commit
370db4f71b
@ -58,7 +58,7 @@ class _DateCellState extends GridCellState<GridDateCell> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final alignment = widget.cellStyle != null
|
final alignment = widget.cellStyle != null
|
||||||
? widget.cellStyle!.alignment
|
? widget.cellStyle!.alignment
|
||||||
: Alignment.center;
|
: Alignment.centerLeft;
|
||||||
return BlocProvider.value(
|
return BlocProvider.value(
|
||||||
value: _cellBloc,
|
value: _cellBloc,
|
||||||
child: BlocBuilder<DateCellBloc, DateCellState>(
|
child: BlocBuilder<DateCellBloc, DateCellState>(
|
||||||
@ -77,7 +77,10 @@ class _DateCellState extends GridCellState<GridDateCell> {
|
|||||||
cursor: SystemMouseCursors.click,
|
cursor: SystemMouseCursors.click,
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: alignment,
|
alignment: alignment,
|
||||||
child: FlowyText.medium(state.dateStr, fontSize: 12),
|
child: FlowyText.medium(
|
||||||
|
state.dateStr,
|
||||||
|
fontSize: 12,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user