Flutter pushNamed in Search Delegate - Anroid Keyboard Strange behavior

Viewed 19

When I push named from the ListTile in Search Delegate, the height of the context is wrong, it seems like the keyboard is still there.

The height of the white space is equal to the height of my keyboard. (P2)

If I dismiss the keyboard mannually, everything works fine. (P3)

void showAndNavigate(BuildContext context, title, title2, gameId) {

    super.showResults(context);
    Navigator.pushNamed(context, RouteName.homeDetail, arguments: {
      'data': {
        'title': title,
        'title2': title2,
        'GameId': gameId,
      }
    });}

 ListTile(
            title: Text(suggestion),
            onTap: () {
              query = suggestion;
              close(context, null);
              showAndNavigate(
                  context, query, suggestionTitles[index], gameIds[index]);
            },
          );

Search delegate

push without dismissing keyboard manually

push with dismissing keyboard manually

1 Answers

resizeToAvoidBottomInset: false,

add this to the page to be pushed

Related