我想更改DropDownButton
的背景 colored颜色 和边框半径,
我用theme
试过了,但它改变了下拉列表的 colored颜色 ,而不是按钮.
Theme(
data: Theme.of(context).copyWith(canvasColor: Colors.blue),
child: DropdownButton(
items: [DropdownMenuItem(child: Text('one'))],
onChanged: (newvlaue) {}),
)
what i want:
what i get: