return Scaffold( title: Text('Fetching data from Sqlite DB - DropdownButtonsnapshot.hasData) return CircularProgressIndicator();
return DropdownButton<UserModel
我创建了DropdownButton,并以DropdownMenuItem的形式插入项,它的子项是CheckboxListTile。但不幸的是,它显示了这个错误 There should be exactly one item with [DropdownButton]'s value: checked.EdgeInsets.only(top: 20.0)), child: Center(
child: DropdownBu