json_to_form
json_to_form copied to clipboard
on select item we have black background
ur plugin awesome but pls resolve this issue when i visit ur code u haven't given [color in drop down button]
DropdownButton<String>(
hint: new Text("Select"),
value: formGeneral['fields'][count]['value'],
onChanged: (String newValue) {
setState(() {
formGeneral['fields'][count]['value'] = newValue;
_handleChanged();
});
},
items: item['items']
.map<DropdownMenuItem<String>>((dynamic data) {
return DropdownMenuItem<String>(
value: data['value'],
child: Container(
padding:
EdgeInsets.symmetric(horizontal: 5, vertical: 3),
decoration: BoxDecoration(color: Colors.white),
child: Text(
data['label'],
style: TextStyle(
fontSize: 19,
letterSpacing: 0.1,
color: Colors.black,
),
),
),
);
}).toList(),