Skip to content

Keyboard dismisses immediately when tapping TextInput inside showDialog #2191

@TheNoumanDev

Description

@TheNoumanDev

Description:
When using showDialog with a widget containing TextInput fields, the keyboard opens briefly and then immediately closes when tapping on a text field on a real device.

Steps to Reproduce:

  • Create a widget with TextInput fields (e.g., a form with name, email fields)
  • Show it using showDialog with style: none
  • Tap on a text field
  • Keyboard opens and immediately closes

Expected Behavior:

  • Keyboard should stay open when tapping on a text field inside a dialog.

Root Cause Analysis:
The dialog_actions.dart does not handle keyboard insets like bottom_sheet_actions.dart does.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions