Swap the Shortcuts widget with its child in TextField (#74683)

This commit is contained in:
Mouad Debbar 2021-01-25 19:19:04 -08:00 committed by GitHub
parent 7475510ba9
commit 47f8e956d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1290,12 +1290,12 @@ class _TextFieldState extends State<TextField> with RestorationMixin implements
semanticsMaxValueLength = null;
}
return Shortcuts(
shortcuts: scrollShortcutOverrides,
child: MouseRegion(
cursor: effectiveMouseCursor,
onEnter: (PointerEnterEvent event) => _handleHover(true),
onExit: (PointerExitEvent event) => _handleHover(false),
return MouseRegion(
cursor: effectiveMouseCursor,
onEnter: (PointerEnterEvent event) => _handleHover(true),
onExit: (PointerExitEvent event) => _handleHover(false),
child: Shortcuts(
shortcuts: scrollShortcutOverrides,
child: IgnorePointer(
ignoring: !_isEnabled,
child: AnimatedBuilder(