Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.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/1/dart/3.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
Flutter 颤振混合模式';getter不是';t定义为'; background:ShaderMask( 着色器回调:(rect){ 返回线半径( 开始:Alignment.topCenter, 结束:TextAlignment.bottomCenter, 颜色:[颜色。黑色,颜色。透明], ).createShader(Rect.fromLTRB(0,0,Rect.width,Rect.height)); }, blendMode:blendMode.dstIn, 子项:FadeInImage.assetNetwork( 占位符:“assets/placeholder.jpg”, 图片:globals.me[“阿凡达”].replaceAll(“\\”,“), ), ),_Flutter_Dart - Fatal编程技术网

Flutter 颤振混合模式';getter不是';t定义为'; background:ShaderMask( 着色器回调:(rect){ 返回线半径( 开始:Alignment.topCenter, 结束:TextAlignment.bottomCenter, 颜色:[颜色。黑色,颜色。透明], ).createShader(Rect.fromLTRB(0,0,Rect.width,Rect.height)); }, blendMode:blendMode.dstIn, 子项:FadeInImage.assetNetwork( 占位符:“assets/placeholder.jpg”, 图片:globals.me[“阿凡达”].replaceAll(“\\”,“), ), ),

Flutter 颤振混合模式';getter不是';t定义为'; background:ShaderMask( 着色器回调:(rect){ 返回线半径( 开始:Alignment.topCenter, 结束:TextAlignment.bottomCenter, 颜色:[颜色。黑色,颜色。透明], ).createShader(Rect.fromLTRB(0,0,Rect.width,Rect.height)); }, blendMode:blendMode.dstIn, 子项:FadeInImage.assetNetwork( 占位符:“assets/placeholder.jpg”, 图片:globals.me[“阿凡达”].replaceAll(“\\”,“), ), ),,flutter,dart,Flutter,Dart,调试此代码时,出现以下错误: The getter 'dstIn' isn't defined for the class 'BlendMode'. Try importing the library that defines 'dstIn', correcting the name to the name of an existing getter, or defining a getter or field named 'dstIn'. 我找不到任何解决办法。如何解决此问题?由于未定义类,

调试此代码时,出现以下错误:

The getter 'dstIn' isn't defined for the class 'BlendMode'.
Try importing the library that defines 'dstIn', correcting the name to the name of an existing getter, or defining a getter or field named 'dstIn'.

我找不到任何解决办法。如何解决此问题?

由于未定义类,因此未定义getter。未导入
dart:ui
(对于
BlendMode
)时,通常会出现此错误。
因此,请确保在文件顶部有以下导入:

导入“dart:ui”;


如果您在其他类中看到此错误,请找出该类(或
enum
此处)所属的库并导入它。

与我遇到的问题不完全相同,但您关于需要手动导入库的说明对我有所帮助。非常感谢。