我需要将颤动下拉按钮从其父级扩展得更多,以便所有下拉菜单项都适合它。
现在我正在使用 Row > Expanded > DropdownButton + isExpanded 这是结果
这是脚手架结构:
Scaffold( ... body: Container(child: Column(children: [ ..,
Expanded(child: SingleChildScrollView(
child: Container(
child: Column(
children: [ ..,
IntrinsicHeight(
child: Expanded( flex: 4,
child: Row([ ..,
DropdownButton(
isExpanded: true,
elevation: 24
),..] ... ]