Closed nickolight closed 1 year ago
I've investigated the source code. Simple changes in the pin_code_fields.dart
will fix this pretty annoying issue:
AbsorbPointer(
// this is a hidden textfield under the pin code fields.
absorbing: true, // it prevents on tap on the text field
child: widget.useExternalAutoFillGroup
? textField
: AutofillGroup(
onDisposeAction: widget.onAutoFillDisposeAction,
child: textField,
),
),
to
AbsorbPointer(
// this is a hidden textfield under the pin code fields.
absorbing: true, // it prevents on tap on the text field
child: textField
),
AutofillGroup brokes the keyboard after navigation!!!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
A simple code snippet to reproduce this issue is below. Using the go_router package as a navigation. When I open the 2nd screen which has the field autofocus: true, - the keyboard hides anyway! Expected behavior - the keyboard is not hidden as if we were using the commented-out TextFormField widget. P.S.: The same issue using Navigator with "replacement" methods (Navigator.pushReplacement...)