在 Android Studio 中运行颤振应用程序显示奇怪的错误CacheNetworkImageProvider
,即使我没有使用它。编译消息是:
BoxDecoration(
borderRadius:
new BorderRadius.circular(4.0),
image: DecorationImage(
image: NetworkImage(
featuredcontent[index].images),
fit: BoxFit.cover),
),
编译器消息:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(CachedNetworkImageProvider key) {
^
/C:/flutter/packages/flutter/lib/src/painting/image_provider.dart:574:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.