Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/115.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何将FadeInImage占位符proterty设置为在颤振中具有自定义大小?_Android_Ios_Flutter_Dart - Fatal编程技术网

Android 如何将FadeInImage占位符proterty设置为在颤振中具有自定义大小?

Android 如何将FadeInImage占位符proterty设置为在颤振中具有自定义大小?,android,ios,flutter,dart,Android,Ios,Flutter,Dart,我正在使用widget在我的应用程序中加载来自互联网的图像。我希望占位符图像具有自定义大小,但问题是我在小部件中使用了BoxFit.cover,该属性也适用于占位符 有没有办法检查图像是否还没有准备好/加载,以便我可以更改我的小部件的fit属性 FadeInImage.assetNetwork( placeholder: 'assets/images/loading_ball.gif', im

我正在使用widget在我的应用程序中加载来自互联网的图像。我希望占位符图像具有自定义大小,但问题是我在小部件中使用了BoxFit.cover,该属性也适用于占位符

有没有办法检查图像是否还没有准备好/加载,以便我可以更改我的小部件的fit属性

FadeInImage.assetNetwork(
                          placeholder: 'assets/images/loading_ball.gif',
                          image: imageList[index],
                          fit: BoxFit.cover,
                        ),