json_to_form icon indicating copy to clipboard operation
json_to_form copied to clipboard

on select item we have black background

Open gautamenbake opened this issue 3 years ago • 0 comments

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(),
          

gautamenbake avatar Sep 04 '21 06:09 gautamenbake