oi-narendra / multiselect-dropdown

Streamlined Flutter widget for versatile multi-selection with extensive customization.
https://pub.dev/packages/multi_dropdown
GNU General Public License v3.0
74 stars 84 forks source link

[Device not simulator]blank space on the top and bottom of items #120

Open zhiyuanFan opened 3 months ago

zhiyuanFan commented 3 months ago

Version: multi_dropdown: ^3.0.0

I found something strange, here is my code. Blank appeared on the top and bottom of items. It's only appeared on my device, not simulator. What should I do to fix it?

MultiDropdown<CustomerTag>(
            items: items,
            controller: _controller,
            enabled: true,
            searchEnabled: false,
            chipDecoration: ChipDecoration(
              labelStyle: TextStyle(
                  color: WColors.white,
                  fontSize: WDimens.tsLabel),
              backgroundColor: WColors.primaryColor,
              wrap: true,
              runSpacing: 2,
              spacing: 10,
            ),
            fieldDecoration: FieldDecoration(
              hintText: '请选择',
              hintStyle: TextStyle(
                  color: WColors.hintTextColor,
                  fontSize: WDimens.tsLabel),
              showClearIcon: true,
              border: const OutlineInputBorder(
                  borderSide:
                  BorderSide(width: 0, color: Colors.transparent)),
              focusedBorder: const OutlineInputBorder(
                  borderSide:
                  BorderSide(width: 0, color: Colors.transparent)),
            ),
            dropdownDecoration: const DropdownDecoration(
              marginTop: 0,
              maxHeight: 500,
            ),
            dropdownItemDecoration: DropdownItemDecoration(
              selectedIcon:
              const Icon(Icons.check_box, color: WColors.primaryColor),
              disabledIcon:
              Icon(Icons.lock, color: Colors.grey.shade300),
            ),
            onSelectionChange: (selectedItems) {
              leadsInfo.appCustomerTagList = selectedItems
                  .map((item) => {"tagName": item.tagName, "id": item.id})
                  .toList();
            },
          ),

image

q8tywolf commented 1 month ago

has this been fixed am getting a grey widget in device not simulator