小编Kev*_*ang的帖子

Flutter IOS 构建错误 - “在签名和功能编辑器中选择开发团队。”

尝试在 IOS 设备上构建时显示以下错误:
如下图所示,Xcode 中的 Signing 设置做得很好。
您能告诉我这个问题的原因和解决方法吗?

Could not build the precompiled application for the device.
Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj


Error (Xcode): Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj


Error (Xcode): Signing for "DKImagePickerController-DKImagePickerController" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj


Error (Xcode): Signing …
Run Code Online (Sandbox Code Playgroud)

ios flutter

32
推荐指数
4
解决办法
1万
查看次数

flutter) 类型“List<dynamic>”不是类型“List<String>”的子类型

我想在使用 firebase 电子邮件身份验证完成注册后获取用户模型。但是,当我尝试从 firestore 获取用户模型时,会打印以下错误:

type 'List<dynamic>' is not a subtype of type 'List<String>'
Run Code Online (Sandbox Code Playgroud)

我的用户模型如下

class UserModel {
  late String userKey;
  late String nickname;
  late String email;
  late List<String> listItem; // error!!
  late GeoFirePoint geoFirePoint; 
  late bool isPostOn; 
  late bool isLogin;
  late DateTime createdDate;

  DocumentReference? reference; 

  UserModel({
   ....
  });

  UserModel.fromJson(Map<String, dynamic> json, this.userKey) // this.reference
      : nickname = json[DOC_NICKNAME],
        ....
        createdDate = json[DOC_CREATEDDATE] == null
            ? DateTime.now().toUtc()
            : (json[DOC_CREATEDDATE] as Timestamp).toDate();

  UserModel.fromSnapshot(DocumentSnapshot<Map<String, dynamic>> snapshot)
      : this.fromJson(snapshot.data()!, snapshot.id);

  Map<String, dynamic> toJson() …
Run Code Online (Sandbox Code Playgroud)

firebase flutter google-cloud-firestore

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

flutter)如何用画布制作箭头线?

我想在用画布的drawLine()绘制的线条的末尾(或两侧)放置一个箭头。

像这样

在此输入图像描述

我可以知道该怎么做吗?

canvas flutter

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

标签 统计

flutter ×3

canvas ×1

firebase ×1

google-cloud-firestore ×1

ios ×1