Flutter 隐藏可搜索下拉按钮的下划线

Flutter Hide Underline of Searchable Dropdown button

如何从 Searchable Drop down Button 中删除下划线,我已经尝试了各种选项与 Input Decoration 的组合,但找不到任何方法。

child: DropdownButtonHideUnderline(
    child: SearchableDropdown.single(
      items: this.searchableItems,
      value: this._selectSubordinate,
      hint: "Subordinate",
      searchHint: "Enter yoursubordinate name or Business code",
      onChanged: (value) {
        setState(() {
          this._selectSubordinate = value;
        });
      },
      isExpanded: true,
    ),
  ),

使用了 underline 属性 :)

SearchableDropdown.single(
      underline: Padding(
        padding: EdgeInsets.all(5),
      ),
      items: _serviceItems,
      value: selectedServiceVal,
      onChanged: (value) => setState(() {
        selectedServiceVal = value;
        _subjectTextController.text =
            '${selectedServiceVal ?? ''} - ${selectedCustomerVal ?? ''}';
      }),
      isExpanded: true,
    );


比照。颤振可搜索下拉版本
https://pub.dev/packages/searchable_dropdown

# searchable dropdown
  searchable_dropdown: ^1.1.3