multiselect-dropdown
multiselect-dropdown copied to clipboard
How to get rid of the space at the top of the dropdown list?
As per title, I can't get why there's a big gap at the beginning of the list and how can I get rid of it
any solution?
Wrapping ListView widget inside _DropDown widget into MediaQuery.removePadding fixes the issue
Flexible(
child: MediaQuery.removePadding(
context: context,
removeTop: true,
removeBottom: true,
removeLeft: true,
removeRight: true,
child: ListView.separated(
separatorBuilder: (_, __) =>
itemSeparator ?? const SizedBox.shrink(),
shrinkWrap: true,
itemCount: items.length,
itemBuilder: (_, int index) => _buildOption(index, theme),
),
),
),
@oi-narendra I have create a PR, could you please have a look?