Increase text handle size to 48 by 48 (#18486)

This commit is contained in:
Jonah Williams 2018-06-20 09:53:18 -07:00 committed by GitHub
parent 9a9e6cffab
commit 328e9f62f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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