-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dialog height too big #35
Comments
I have the same problem. How do you fix @Hosam11 ? Thanks |
@vcestra there is an height attribute you can give it double value |
Ok @Hosam11 . So you fix the height. Thanks |
in version 3.1.7 the dialog height is fit to content of element inside the dropdown dialog and the below code work fine
the new code
here's I fix it use with v 4.0.0, wrap the Container with Column then give it MainAxisSize.min, then make ListView shrinkWrap: true
|
@Hosam11 Hi, I use 4.1.2 ,and find |
I have tried
content: ConstrainedBox(
constraints: BoxConstraints(
minHeight: 0,
),
child: Container(
height: widget.height,
width: widget.width ?? MediaQuery.of(context).size.width * 0.73,
child: widget.listType == null ||
widget.listType == MultiSelectListType.LIST
? ListView.builder(
itemCount: _items.length,
shrinkWrap: true,
itemBuilder: (context, index) {
return _buildListItem(_items[index]);
},
)
: SingleChildScrollView(
child: Wrap(
children: _items.map(_buildChipItem).toList(),
),
),
),
), |
how to remove this empty area from dialog ?
The text was updated successfully, but these errors were encountered: