草庐IT

firebase-cloud-messaging

全部标签

firebase - 如何从 Cloud Firestore 获取 Flutter App 的简单数据?

当我运行时出现以下错误。这些是flutter进入Firebase的基本代码。构建MyHomePage时抛出以下断言(脏,状态:MyHomePageState#b163a):'package:flutter/src/widgets/text.dart':断言失败:第235行pos15:'data!=null':isnot拜托,谁能帮我解决这个问题?import'dart:async';import'package:flutter/material.dart';import'package:firebase_core/firebase_core.dart';import'package:c

firebase - 如何从 Cloud Firestore 获取 Flutter App 的简单数据?

当我运行时出现以下错误。这些是flutter进入Firebase的基本代码。构建MyHomePage时抛出以下断言(脏,状态:MyHomePageState#b163a):'package:flutter/src/widgets/text.dart':断言失败:第235行pos15:'data!=null':isnot拜托,谁能帮我解决这个问题?import'dart:async';import'package:flutter/material.dart';import'package:firebase_core/firebase_core.dart';import'package:c

firebase - flutter NoSuchMethodError

我正在尝试使用几个类来使用函数。在第一个中,我有以下内容:import'package:flutter/material.dart';import'auth.dart';import'state_rut.dart';classSelectProfileextendsStatelessWidget{SelectProfile({this.auth,this.onSignedIn,this.name,this.lastname,this.rut,this.birthdate,this.gender,this.region,this.comune,this.city,this.street,

firebase - flutter NoSuchMethodError

我正在尝试使用几个类来使用函数。在第一个中,我有以下内容:import'package:flutter/material.dart';import'auth.dart';import'state_rut.dart';classSelectProfileextendsStatelessWidget{SelectProfile({this.auth,this.onSignedIn,this.name,this.lastname,this.rut,this.birthdate,this.gender,this.region,this.comune,this.city,this.street,

firebase - 如何使用 firestore 在当前用户文档中添加数据?

FuturegetUserDoc()async{finalFirebaseAuth_auth=FirebaseAuth.instance;finalFirestore_firestore=Firestore.instance;FirebaseUseruser=await_auth.currentUser();DocumentReferenceref=_firestore.collection('users').document(user.uid);returnref;}我无法在文档中添加数据。这是我在firestore中输入数据的代码。请帮忙,我是flutter的新手returnref

firebase - 如何使用 firestore 在当前用户文档中添加数据?

FuturegetUserDoc()async{finalFirebaseAuth_auth=FirebaseAuth.instance;finalFirestore_firestore=Firestore.instance;FirebaseUseruser=await_auth.currentUser();DocumentReferenceref=_firestore.collection('users').document(user.uid);returnref;}我无法在文档中添加数据。这是我在firestore中输入数据的代码。请帮忙,我是flutter的新手returnref

Flutter:如果 Cloud_firestore 或其依赖项与 AndroidX 不兼容,Cloud_firestore 将破坏您的 Android 构建

我不能同时使用这两个flutter插件:cloud_firestore:^0.9.0+2barcode_scan:^0.0.8运行时出现错误:D8:Programtypealreadypresent:android.arch.core.util.Function*********************************************************WARNING:Thisversionofcloud_firestorewillbreakyourAndroidbuildifitoritsdependenciesaren'tcompatiblewithAndroi

Flutter:如果 Cloud_firestore 或其依赖项与 AndroidX 不兼容,Cloud_firestore 将破坏您的 Android 构建

我不能同时使用这两个flutter插件:cloud_firestore:^0.9.0+2barcode_scan:^0.0.8运行时出现错误:D8:Programtypealreadypresent:android.arch.core.util.Function*********************************************************WARNING:Thisversionofcloud_firestorewillbreakyourAndroidbuildifitoritsdependenciesaren'tcompatiblewithAndroi

Flutter 来自 firebase 存储 url 的图像未在二等舱中显示

我已经从firebase存储中获取图像。文档快照在类里面传递,其中正在构建流意味着第一个类,图像显示在第二堂课,但我必须在下一个类即第三堂课的Hero小部件中显示图像。因此,在第三类中,错误是:到目前为止我的代码是:从二等舱到三等舱Container(padding:EdgeInsets.all(10.0),child:Hero(tag:'1',child:GestureDetector(onTap:(){//navigateToImage(widget.ds.data['GraphImg']);Navigator.push(context,MaterialPageRoute(buil

Flutter 来自 firebase 存储 url 的图像未在二等舱中显示

我已经从firebase存储中获取图像。文档快照在类里面传递,其中正在构建流意味着第一个类,图像显示在第二堂课,但我必须在下一个类即第三堂课的Hero小部件中显示图像。因此,在第三类中,错误是:到目前为止我的代码是:从二等舱到三等舱Container(padding:EdgeInsets.all(10.0),child:Hero(tag:'1',child:GestureDetector(onTap:(){//navigateToImage(widget.ds.data['GraphImg']);Navigator.push(context,MaterialPageRoute(buil