小编Bri*_*ide的帖子

Flutter does not work anymore after upgrading

My project was working perfectly and Just today i have upgrade my Flutter then everything start going run.

At the bottom is the error they give me. Please help me.

file:///Users/macbook/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/animated_background-1.0.4/lib/image_helper.dart:17:30: Error: The argument type 'dynamic Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
 - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/macbook/Documents/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/macbook/Documents/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    newStream.removeListener(listener);
                             ^
file:///Users/macbook/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/animated_background-1.0.4/lib/image_helper.dart:20:25: Error: The argument type 'dynamic Function(ImageInfo, …
Run Code Online (Sandbox Code Playgroud)

dart flutter

3
推荐指数
1
解决办法
1747
查看次数

脚手架主体中的多个 Gridview 构建器

在我看来,必须添加多个垂直 Gridview,从数据库加载数据。

问题是,当我在列或换行中添加 Gridview 时,会出现错误,因为高度未固定。如何在body中添加多个Gridview?

gridview dart flutter

1
推荐指数
1
解决办法
6492
查看次数

标签 统计

dart ×2

flutter ×2

gridview ×1