Skip to content

Commit

Permalink
optimize(bosskmk#212): Optimize the UI effect for resize icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcb33 authored and bosskmk committed Jun 26, 2021
1 parent 667ef71 commit 54f66a9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/src/ui/columns/pluto_column_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,20 @@ class _PlutoColumnTitleState extends _PlutoColumnTitleStateWithChange {
if (!(widget.column.enableContextMenu || !widget.column.sort.isNone) &&
widget.column.enableDropToResize)
Positioned(
right: -1,
right: 0,
child: GestureDetector(
onHorizontalDragStart: _handleOnHorizontalResizeDragStart,
onHorizontalDragUpdate: _handleOnHorizontalResizeDragUpdate,
child: Container(
height: widget.stateManager.columnHeight,
alignment: Alignment.center,
width: 8,
alignment: Alignment.centerRight,
child: IconButton(
icon: const Icon(Icons.code_sharp),
mouseCursor: SystemMouseCursors.resizeLeftRight,
icon: const Icon(
Icons.code_sharp,
color: Color.fromARGB(0, 0, 0, 0),
),
iconSize: widget.stateManager.configuration!.iconSize,
onPressed: null,
)),
Expand Down Expand Up @@ -281,7 +286,7 @@ class _BuildColumnWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
width: column!.width,
height: PlutoGridSettings.rowHeight,
height: stateManager!.configuration!.columnHeight,
padding:
const EdgeInsets.symmetric(horizontal: PlutoGridSettings.cellPadding),
decoration: stateManager!.configuration!.enableColumnBorder
Expand Down

0 comments on commit 54f66a9

Please sign in to comment.