故障加载图像/颤动



在我的应用程序中加载照片后,我收到错误消息,我不明白这意味着什么。

W/IInputConnectionWrapper( 6937): finishComposingText on inactive InputConnection
I/ExifInterface_JNI( 6937): Raw image not detected
I/ExifInterface_JNI( 6937): Raw image not detected
D/EGL_emulation( 6937): eglCreateContext: 0xaca058a0: maj 3 min 0 rcv 3
D/EGL_emulation( 6937): eglMakeCurrent: 0xaca058a0: ver 3 0 (tinfo 0xaca03410)
E/eglCodecCommon( 6937): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 6937): glUtilsParamSize: unknow param 0x00008824
E/eglCodecCommon( 6937): glUtilsParamSize: unknow param 0x000087fe
D/EGL_emulation( 6937): eglMakeCurrent: 0xa837d360: ver 3 0 (tinfo 0xa8351530)
D/EGL_emulation( 6937): eglMakeCurrent: 0xaca058a0: ver 3 0 (tinfo 0xaca03410)

我看不出故障与我保存图像的不同输入之间的联系。我的应用程序正在通过显示图像来工作。

SizedBox(height: 16),
_imageFile == null && _imageUrl == null
? ButtonTheme(
child: RaisedButton(
onPressed: () {
_getLocalImage();
loading = true;
},
child: Text(
'Add Image',
style: TextStyle(color: Colors.white),
),
),
)
_getLocalImage() async {
File imageFile =
// ignore: deprecated_member_use
await ImagePicker.pickImage(source: ImageSource.gallery, imageQuality: 50, maxWidth: 400);
if (imageFile != null) {
setState(() {
_imageFile = imageFile;
});
}
}

问题来自"loading=true;"我正在将替换为Loading Builder,以指示照片的加载视图。

最新更新