fix #110
This commit is contained in:
@@ -1 +1 @@
|
|||||||
6086894df3c7c1fee9d44ed06f5801c3
|
a5090a3d96b78c882fdfd4b39716ca8e
|
||||||
@@ -52,6 +52,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
Widget build(BuildContext context) => Padding(
|
Widget build(BuildContext context) => Padding(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
width: widget.size?.width ?? MediaQuery.of(context).size.width,
|
width: widget.size?.width ?? MediaQuery.of(context).size.width,
|
||||||
height:
|
height:
|
||||||
widget.size?.height ?? MediaQuery.of(context).size.height * 0.85,
|
widget.size?.height ?? MediaQuery.of(context).size.height * 0.85,
|
||||||
@@ -69,33 +70,25 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Column(
|
IconButton(
|
||||||
mainAxisSize: MainAxisSize.min,
|
padding: const EdgeInsets.all(0),
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
iconSize: 20,
|
||||||
children: <Widget>[
|
icon: widget.closeIcon,
|
||||||
IconButton(
|
onPressed: () => Navigator.pop(context),
|
||||||
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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
Container(
|
if (!widget.hideSearch)
|
||||||
width: widget.size?.width ?? MediaQuery.of(context).size.width,
|
Padding(
|
||||||
height: widget.size?.height ??
|
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||||
MediaQuery.of(context).size.height * 0.7,
|
child: TextField(
|
||||||
|
style: widget.searchStyle,
|
||||||
|
decoration: widget.searchDecoration,
|
||||||
|
onChanged: _filterElements,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
widget.favoriteElements.isEmpty
|
widget.favoriteElements.isEmpty
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ environment:
|
|||||||
sdk: ">=2.2.2 <3.0.0"
|
sdk: ">=2.2.2 <3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
modal_bottom_sheet: ^0.2.0
|
modal_bottom_sheet: ^0.2.2
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user