我想将任何插件添加到我的flutter web项目中,但在添加插件后出现错误。我运行了flutter pub get,它给我的代码是0。但当我尝试时:
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
上面写着找不到包裹。
pubspec.yaml
environment:
# You must be using Flutter >=1.5.0 or Dart >=2.3.0
sdk: '>=2.3.0 <3.0.0'
dependencies:
当我尝试在Flutter中合并移动代码库和web代码库时,我看到以下错误:
webdev could not run for this project.
This version of webdev does not support the `build_daemon` protocol used by your version of `build_runner`.
Please add a dev dependency on `build_daemon` with constraint: >=1.0.0 <2.0.0
pub finished with exit code 78
我正在尝试用云构建在java中成功地构建一个云函数。云构建在步骤的末尾返回此错误。
部署失败:生成失败:生成成功,但没有生成指定为函数目标的类"cloudfunction“:Error: class not : cloudfunction;Error : d2301784
java代码
@SpringBootApplication
public class CloudfunctionApplication {
public static void main(String[] args) {
SpringApplication.run(CloudfunctionAppl
我对flutter非常陌生,尝试使用flutter DIO包向flask服务器发送包含图像数据的POST请求。我成功地通过邮递员给它打了电话 使用DIO包在flutter应用中发送post请求,如下所示 PickedFile? _image;
//this is a code get image from Camera
_imageFromCamera() async {
PickedFile? image = await ImagePicker()
.getImage(source: ImageSource.camera, imageQuality:
我试图使用docker运行一个不稳定的web,但当我运行docker-compose up时,出现了以下错误
dashboard_1 /docker-entrypoint.sh: 38: exec: flutter: not
Dockerfile
FROM cirrusci/flutter AS build
RUN flutter channel beta
RUN flutter upgrade
RUN flutter config --enable-web
RUN mkdir /app/
COPY . /app/
WORKDIR /app/
RUN flutter build web
所以我想升级颤振版本,但是当我运行flutter doctor时,会出现这个错误
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel unknown, 3.3.2, on Microsoft Windows [Version 10.0.19044.2130], locale en-GB)
! Upstream repository unknown
[√] Android toolchain - develop for Android devices (Android SDK v
当我尝试在flutter web中的pubspec.yaml文件中添加从属关系时,在尝试使用pub get命令时出现错误: [retgoo_internal] pub get
Resolving dependencies...
Because every version of aiframework depends on flutter any from sdk which is forbidden, aiframework is forbidden.
So, because retgoo_internal depends on aiframework ^1.0.7+12, version
我有一个用flutter编写的移动应用程序,我想将它转换为flutter_web应用程序(集成flutter还不可用)。我现在遇到了一些包的问题。
我得到以下错误
webdev could not run for this project.
You have a dependency on `cached_network_image` which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on `cloud
我在Firebase函数/日志中不断收到此错误消息 dialogflowFirebaseFulfillment
TypeError: handler is not a function
at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9)
at /worker/worker.js:783:7
at /worker/worker.js:766:11
at _combinedTickCallback (internal/process/next_ti
我的最终目标是将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://
只有在执行flutter build web时才会出现两个问题。
有时,flutter build web无法(错误地)抱怨不兼容的类型(见下文)。
有时构建过程结束,但是web应用程序不工作:不显示任何内容,控制台中也没有消息。
我提到的错误如下:
% flutter build web
Target dart2js failed: Exception: lib/main.dart:24:31:
Error: A value of type 'ApiUsersRepository' can't be assigned
在添加syncfusion_flutter_datagrid、printing和pdf包后,在构建web时会出现以下错误:
我运行过flutter clean && flutter pub get,但没有帮助。我还尝试将ffi添加到pubspec.yml中。
Compiling lib/main.dart for the Web... 16.0s
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is dep
我正在尝试为flutter构建web dev。 依赖关系使我无法创建应用程序。 如何为应用程序的web开发创造条件? webdev could not run for this project.
The `build_web_compilers` version – 1.2.3 – is not within the allowed constraint – >=2.6.1 <3.0.0.
You have a dependency on `cloud_firestore` which is not supported for flutter_web tech preview.
不知从哪里冒出来,构建出现了一个与位置组件相关的奇怪错误,错误出现在"src..\location\FlutterLocationService.kt:“中。
以下是错误:
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\location-4.3.0\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (124, 1): Class 'FlutterLocationService' is not abstract and do
我已经研究这个问题将近半天了。我正在尝试使用Flutter的SharedPreferences包在应用程序的存储中存储密钥/值。当我通过SharedPreferences新建一个await SharedPreferences.getInstance()时,它构建和运行正常,但是当应用程序到达该代码行时,它会崩溃,并出现以下错误:
MissingPluginException (MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferen
当从.json执行文件时,我在flutter和dart中编程时出现此错误。有人知道如何修复它吗? ════════ Exception caught by image resource service ════════════════════════════
The following NoSuchMethodError was thrown resolving an image codec:
The getter 'length' was called on null.
Receiver: null
Tried calling: length
When the excep