我有一个下拉按钮,如下所示。
child: DropdownButton<String>(
value: dropDownValue,
icon: Icon(Icons.keyboard_arrow_down),
iconSize: 15,
elevation: 16,
style: TextStyle(color: Colors.grey),
underline: Container(
decoration: ShapeDecoration(
shape: RoundedRectangleBorder(
side: BorderSide(width: 1.0, style: BorderStyle.solid),
borderRadius: BorderRadius.all(Radius.circular(5.0)),
),
),
),
onChanged: (String newValue) {
setState(() {
dropDownValue = newValue;
});
},
items: [dropDownValue,...snapshot.data.data]
.map<DropdownMenuItem<String>>((String value) {
return DropdownMenuItem<String>(
value: value,
child: Text(value.name),
);
}).toList(),
),
Run Code Online (Sandbox Code Playgroud)
我想通过在容器中使用装饰来像图像中一样塑造它,但我无法按照我想要的方式塑造它

但现在这是我的形象。如何向下拉按钮添加边缘?有没有已知的方法?
我获得了图像 Base64 编码的图像数据,但我获得的其中一张图像未上传,并给出了以下形式的错误
无效长度必须是四的倍数。
另外,我的其他图像出现一会儿,然后消失一会儿。他们来了又走。这个问题有解决办法吗?
Widget image(String thumbnail) {
final _byteImage = Base64Decoder().convert(thumbnail);
Widget image = Image.memory(_byteImage);
return image;
}
child: Column(
children: [
image(item.thumbnail),
Text(
item.name,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.normal,fontFamily: 'Poppins'),
maxLines: 2,
),
],
),
Run Code Online (Sandbox Code Playgroud)