mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: url underline issue (#3618)
This commit is contained in:
parent
9e61133886
commit
b4051c7e9f
@ -144,8 +144,10 @@ class _GridURLCellState extends GridEditableTextCell<GridURLCell> {
|
|||||||
_controller.text = state.content;
|
_controller.text = state.content;
|
||||||
},
|
},
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
|
final style = widget.cellStyle?.textStyle ??
|
||||||
|
Theme.of(context).textTheme.bodyMedium!;
|
||||||
widget._cellDataNotifier.value = state.content;
|
widget._cellDataNotifier.value = state.content;
|
||||||
final urlEditor = Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: GridSize.cellContentInsets.left,
|
left: GridSize.cellContentInsets.left,
|
||||||
right: GridSize.cellContentInsets.right,
|
right: GridSize.cellContentInsets.right,
|
||||||
@ -154,13 +156,9 @@ class _GridURLCellState extends GridEditableTextCell<GridURLCell> {
|
|||||||
controller: _controller,
|
controller: _controller,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
style: (widget.cellStyle?.textStyle ??
|
style: style.copyWith(
|
||||||
Theme.of(context).textTheme.bodyMedium)
|
|
||||||
?.copyWith(
|
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
decoration: _controller.text.isNotEmpty
|
decoration: TextDecoration.underline,
|
||||||
? TextDecoration.underline
|
|
||||||
: TextDecoration.none,
|
|
||||||
),
|
),
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
@ -170,11 +168,11 @@ class _GridURLCellState extends GridEditableTextCell<GridURLCell> {
|
|||||||
),
|
),
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintText: widget.cellStyle?.placeholder,
|
hintText: widget.cellStyle?.placeholder,
|
||||||
|
hintStyle: style.copyWith(color: Theme.of(context).hintColor),
|
||||||
isDense: true,
|
isDense: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
return urlEditor;
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user