我有一个下拉菜单,它位于应用程序栏中。然而,它似乎默认带有下划线。Flutter文档说默认为0.0,但这不可能是情况,因为我能看到下划线。我该如何移除这个下划线?
return Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(30)),
),
margin: EdgeInsets.all(10.0),
padding: EdgeInsets.all(5.0),
width: MediaQuery.of(context).size.width * 0.30,
child: Center(
child: DropdownButton(
items: _dropdownValues.map((value) => DropdownMenuItem(child: Text(value), value: value)).toList(),
onChanged: (String value) {
setState(() {
_currentlySelected = value;
});
},
isExpanded: false,
value: _currentlySelected,
)
)
);
设计:
下划线: Container(color:Colors.red, height: 2.0)
- The mentalist Coder