Skip to content

Commit

Permalink
Merge pull request #102 from artflutter/fix/single-child-scroll-view-…
Browse files Browse the repository at this point in the history
…removal

bottom sheet improvement
  • Loading branch information
salim-lachdhaf committed Jan 17, 2021
2 parents e1d4381 + 9389e9b commit c3b8363
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/dropdown_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,12 @@ class DropdownSearchState<T> extends State<DropdownSearch<T>> {
shape: widget.popupShape,
context: context,
builder: (context) {
return SingleChildScrollView(
child: AnimatedPadding(
duration: Duration(milliseconds: 300),
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom,
),
child: _selectDialogInstance(data, defaultHeight: 350),
return AnimatedPadding(
duration: Duration(milliseconds: 300),
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom,
),
child: _selectDialogInstance(data, defaultHeight: 350),
);
});
}
Expand Down

0 comments on commit c3b8363

Please sign in to comment.