Increase text handle size to 48 by 48 (#18486)
This commit is contained in:
parent
9a9e6cffab
commit
328e9f62f6
@ -153,14 +153,17 @@ class _MaterialTextSelectionControls extends TextSelectionControls {
|
|||||||
/// Builder for material-style text selection handles.
|
/// Builder for material-style text selection handles.
|
||||||
@override
|
@override
|
||||||
Widget buildHandle(BuildContext context, TextSelectionHandleType type, double textHeight) {
|
Widget buildHandle(BuildContext context, TextSelectionHandleType type, double textHeight) {
|
||||||
final Widget handle = new SizedBox(
|
final Widget handle = new Padding(
|
||||||
width: _kHandleSize,
|
padding: const EdgeInsets.only(right: 26.0, bottom: 26.0),
|
||||||
height: _kHandleSize,
|
child: new SizedBox(
|
||||||
child: new CustomPaint(
|
width: _kHandleSize,
|
||||||
painter: new _TextSelectionHandlePainter(
|
height: _kHandleSize,
|
||||||
color: Theme.of(context).textSelectionHandleColor
|
child: new CustomPaint(
|
||||||
)
|
painter: new _TextSelectionHandlePainter(
|
||||||
)
|
color: Theme.of(context).textSelectionHandleColor
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// [handle] is a circle, with a rectangle in the top left quadrant of that
|
// [handle] is a circle, with a rectangle in the top left quadrant of that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user