You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Compiler message:
lib/ui/drawer/common_website.dart:77:35: Error: A function expression can't have a name.
_scrollController.addListener(VoidCallback() {
^^^^^^^^^^^^
/C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/photo_view-0.2.5/lib/photo_view.dart:279:24: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('/D:/Flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('/D:/Flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
stream.addListener(listener);
^
/C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/photo_view-0.2.5/lib/photo_view.dart:281:29: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('/D:/Flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('/D:/Flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
stream.removeListener(listener);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'D:\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
`Compiler message:
lib/ui/drawer/common_website.dart:77:35: Error: A function expression can't have a name.
_scrollController.addListener(VoidCallback() {
^^^^^^^^^^^^
/C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/photo_view-0.2.5/lib/photo_view.dart:279:24: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
stream.addListener(listener);
^
/C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/photo_view-0.2.5/lib/photo_view.dart:281:29: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
stream.removeListener(listener);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
Where:
Script 'D:\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 801
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 9s
Finished with error: Gradle task assembleDebug failed with exit code 1
`
是否是环境不兼容的问题呢,请问怎么解决比较好呢
The text was updated successfully, but these errors were encountered: