diff --git a/example/ios/Flutter/.last_build_id b/example/ios/Flutter/.last_build_id index 9268c29..0957c02 100644 --- a/example/ios/Flutter/.last_build_id +++ b/example/ios/Flutter/.last_build_id @@ -1 +1 @@ -6086894df3c7c1fee9d44ed06f5801c3 \ No newline at end of file +a5090a3d96b78c882fdfd4b39716ca8e \ No newline at end of file diff --git a/lib/selection_dialog.dart b/lib/selection_dialog.dart index 7434b4a..ad7c168 100644 --- a/lib/selection_dialog.dart +++ b/lib/selection_dialog.dart @@ -52,6 +52,7 @@ class _SelectionDialogState extends State { Widget build(BuildContext context) => Padding( padding: const EdgeInsets.all(16.0), child: Container( + clipBehavior: Clip.hardEdge, width: widget.size?.width ?? MediaQuery.of(context).size.width, height: widget.size?.height ?? MediaQuery.of(context).size.height * 0.85, @@ -69,33 +70,25 @@ class _SelectionDialogState extends State { ], ), child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.end, children: [ - Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - IconButton( - padding: const EdgeInsets.all(0), - iconSize: 20, - icon: widget.closeIcon, - onPressed: () => Navigator.pop(context), - ), - if (!widget.hideSearch) - Padding( - padding: const EdgeInsets.symmetric(horizontal: 24), - child: TextField( - style: widget.searchStyle, - decoration: widget.searchDecoration, - onChanged: _filterElements, - ), - ), - ], + IconButton( + padding: const EdgeInsets.all(0), + iconSize: 20, + icon: widget.closeIcon, + onPressed: () => Navigator.pop(context), ), - Container( - width: widget.size?.width ?? MediaQuery.of(context).size.width, - height: widget.size?.height ?? - MediaQuery.of(context).size.height * 0.7, + if (!widget.hideSearch) + Padding( + padding: const EdgeInsets.symmetric(horizontal: 24), + child: TextField( + style: widget.searchStyle, + decoration: widget.searchDecoration, + onChanged: _filterElements, + ), + ), + Expanded( child: ListView( children: [ widget.favoriteElements.isEmpty diff --git a/pubspec.yaml b/pubspec.yaml index 28b6170..824fb80 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: ">=2.2.2 <3.0.0" dependencies: - modal_bottom_sheet: ^0.2.0 + modal_bottom_sheet: ^0.2.2 flutter: sdk: flutter