flutter / flutter/flutter

SearchAnchor keyboard covers suggestions when isFullScreen is false

Open
#179,503 7 comments 0 reactions 0 assignees View on GitHub
found in release: 3.38 found in release: 3.40 has reproducible steps p: material_ui P2 package team-design triaged-design
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Write a simple SearchAnchor widget with multiple suggestions and isFullScreen = false

### Expected results

The dialog height should be limited to the size of the screen - keyboard height

### Actual results

It seems like the keyboard opens slightly after the dialog so the bottom padding is not correct.

### Code sample

Code sample

```dart
return SearchAnchor.bar(
isFullScreen: false,
suggestionsBuilder: (context, controller) {
return List.generate(100, (index) => ListTile(title: Text("$index")));
},
);
```

### Screenshots or Video

Screenshots / Video demonstration

https://github.com/user-attachments/assets/13b64fcf-b583-4197-964a-44929fd84a80

### Logs

Logs

```console
[Paste your logs here]
```

### Flutter Doctor output

Doctor output

```console
[Paste your output here]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.