Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard on TextField not showing after tapping on picker, found using BottomPicker.dateTime #81

Open
adessoli opened this issue Nov 28, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@adessoli
Copy link

Hi,

I really enjoy using this package but it keeps having an issue in combination with TextField. First time entering the screen I can tap on the textfield and after tapping on the InkWell the picker appears. After closing the picker and tapping again on the textfield the keyboard opens and instantly closes again. From this moment the textfield can no longer be edited.
I've already tried a lot with focus, controllers and so on. To me it turns out that its problem with your BottomPicker.

return Scaffold( body: SingleChildScrollView( child: Column( children: [ TextField( onTapOutside: (event) {}, key: GlobalKey(), controller: controller, maxLines: 3, keyboardType: TextInputType.multiline, ), InkWell( onTap: () => _openDateTimePicker(context), child: InputDecorator( decoration: InputDecoration( labelText: 'Voraussichtliches Ende', suffixIcon: Icon( Icons.date_range, color: primaryColor, size: 20.0, ), border: OutlineInputBorder( borderRadius: BorderRadius.circular(10.0), ), ), child: Text( vm.expectedEndDateString, style: TextStyle(fontSize: 16, fontWeight: FontWeight.normal), ), ), ), ], ), ), );

Hope you have an idea.

@koukibadr
Copy link
Owner

@adessoli thanks for sending me your feedback and issue I'll check it out

@koukibadr koukibadr self-assigned this Dec 10, 2023
@koukibadr koukibadr added the bug Something isn't working label Dec 10, 2023
@KevinNizet
Copy link

Hi @koukibadr @adessoli, adding readOnly and setting it to true in the TextField prevent the keyboard from opening after choosing an item from the bottom picker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants