我的最终目标是将Flutter移动应用转换为Flutter web应用。我在Flutter移动应用程序中使用了flutter_svg,但在Flutter web应用程序中不工作。 Flutter web的替代插件是什么? 下面是我使用flutter run -d chrome在chrome中运行项目时出现的错误。 The following UnimplementedError was thrown during paint():
UnimplementedError
The relevant error-causing widget was:
RawPicture
file://
因此,我试图用我的图标更改默认的颤振发射器图标。我正在使用来自的。Pubspec.yaml中的代码:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
hexcolor: ^2.0.5
google_fonts: ^2.1.0
flutter
我在下面的代码中使用从json.decode()函数生成的映射:
for (var i = 0; i < data[0]["conversation"].length; i++) {
print(data[0]["conversation"][i]["conversationID"]);
print(data[0]["conversation"][i]["startDate"]);
print(data[0]["conversation"][i]["
当我运行flutter应用程序时,我得到了以下错误:
Compiler message:
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:199:38: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamLis
安装html_editor_enhanced后出现以下错误:^2.2.0+1-dev.1
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-0.5.0/lib/src/hsv_picker.dart:730:43: Error: The parameter 'event' of the method 'AlwaysWinPanGestureRecognizer.addAllowedPointer' has type 'PointerDownEvent', whic
除了flutter doctor命令之外,其他命令都可以正常工作
我真的不知道会是什么。有什么帮助吗?
命令
flutter doctor
异常
Victors-MacBook-Pro:police_videos victoraldir$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-IE)
⣽Unhandled exception:
RangeE
在运行getDocuments(source: Source.server)时,我得到了这个错误。我不知道错误指向什么或者Future<null>?是什么。
cloud_firestore: 0.12.10+2
E/flutter (12116): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type 'Future<dynamic>' is not a subtype of type 'Future<Null>?'
E/flutter (
我正在为自己构建一些内部工具来生成颤振应用程序,使用我已经设置的一些模板以及一些可以在应用程序之间共享的附加功能。
目前,代码编译、构建和部署,但是它被卡在第一个视图(空白的白色屏幕)上,并在失败之前重新尝试启动天文台服务器11次。除了下面的错误外,没有其他错误。
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
I/flutter ( 7011): Observatory server failed to
我正在尝试归档和构建颤振IOS项目,以便最终生成IPA,但由于这个错误,我试图跟踪有关问题的现有问题--我无法理解:
../../../desktop/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^
在使用facebook sdk进行登录时,当我单击facebook按钮时出现此错误。
flutter: type '_InternalLinkedHashMap<dynamic, dynamic>' is not a
subtype of type 'Map<String, Object>'
[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
type 'Future<dynamic>' is not a subtype of type 'Fut
最近,我更新到了颤振2.5和最新的机器人工作室,并试图将我的颤振项目编译到android设备上。Android工作室将我抛出了下面的错误。如果我在终端中编写flutter run,那么编译到android设备上就没有问题。
我猜这肯定和安卓工作室有关。我试着降级到早期的android演播室版本,但问题依然存在。
我不知道这是什么插件,它似乎不像我使用的任何我的项目。
编辑:如果我将颤振的评级从2.5降到2.0,我的项目就会再次编译。所以问题就在2.5以内
Launching lib/main.dart on Android SDK built for x86 in debug mode...