:::
6-11-2 設定按鈕顏色
ElevatedButton.icon(
icon: Icon(Icons.photo),
label: Text('選擇欲上傳圖片'),
onPressed: _pickImage,
style: ElevatedButton.styleFrom(
primary: greenLight, // background
onPrimary: Colors.white, // foreground
),
),
6-11-1 從陣列產生下拉選單的值