From 9064b9f7ad006c4b993746fa7c4a4f76e177e7d7 Mon Sep 17 00:00:00 2001 From: chiragkr04 Date: Thu, 20 Oct 2022 16:19:23 +0530 Subject: [PATCH] fix: half hidden textfield in name field --- .../grid/presentation/widgets/cell/text_cell.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/text_cell.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/text_cell.dart index cf418c6e93..3d7a9e0965 100644 --- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/text_cell.dart +++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/text_cell.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'package:app_flowy/plugins/grid/presentation/widgets/cell/prelude.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:app_flowy/startup/startup.dart'; @@ -58,7 +59,10 @@ class _GridTextCellState extends GridFocusNodeCellState { } }, child: Padding( - padding: GridSize.cellContentInsets, + padding: EdgeInsets.only( + left: GridSize.cellContentInsets.left, + right: GridSize.cellContentInsets.right, + ), child: TextField( controller: _controller, focusNode: focusNode, @@ -67,7 +71,10 @@ class _GridTextCellState extends GridFocusNodeCellState { maxLines: null, style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500), decoration: InputDecoration( - contentPadding: EdgeInsets.zero, + contentPadding: EdgeInsets.only( + top: GridSize.cellContentInsets.top, + bottom: GridSize.cellContentInsets.bottom, + ), border: InputBorder.none, hintText: widget.cellStyle?.placeholder, isDense: true,