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AAASUVORK5CYII=";
複製代碼
2.解析成Uint8List:spa
Uint8List _airplaneBytes;
_airplaneBytes = base64Decode(_airplaneBase64);
複製代碼
3.加載到Image容器中:3d
Image.memory(_airplaneBytes,fit: BoxFit.fill,);
複製代碼