草庐IT

Firebase-auth

全部标签

添加 "local_auth"库后 Flutter 应用程序运行失败

我正在使用local_auth:0.4.0+1我的Flutter项目中的库,因为我需要它指纹认证,问题是当我运行它时出现这个警告:*********************************************************WARNING:Thisversionoflocal_authwillbreakyourAndroidbuildifitoritsdependenciesaren'tcompatiblewithAndroidX.Seeformoreinformationontheproblemandhowtofixit.Thiswarningprintsfora

添加 "local_auth"库后 Flutter 应用程序运行失败

我正在使用local_auth:0.4.0+1我的Flutter项目中的库,因为我需要它指纹认证,问题是当我运行它时出现这个警告:*********************************************************WARNING:Thisversionoflocal_authwillbreakyourAndroidbuildifitoritsdependenciesaren'tcompatiblewithAndroidX.Seeformoreinformationontheproblemandhowtofixit.Thiswarningprintsfora

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 来自 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

firebase - 存储和转换 MaterialColors

如果我有一个MaterialColor(例如Colors.red)并想将它保存在Firestore(或任何数据库)中,然后当我重新启动应用程序时,检索该颜色并将其转换为MaterialColor,最好的方法是什么去做?我最初想到的只是将颜色作为字符串存储在数据库中,例如“蓝色”、“红色”等,然后使用switch语句再次将它们转换为MaterialColors。似乎有更好的出路。有什么建议吗? 最佳答案 将颜色存储为1,2,3,4…(越小越好,以便快速检索)。然后在一个全局类中,有一个基于整数返回颜色的get函数。

firebase - 存储和转换 MaterialColors

如果我有一个MaterialColor(例如Colors.red)并想将它保存在Firestore(或任何数据库)中,然后当我重新启动应用程序时,检索该颜色并将其转换为MaterialColor,最好的方法是什么去做?我最初想到的只是将颜色作为字符串存储在数据库中,例如“蓝色”、“红色”等,然后使用switch语句再次将它们转换为MaterialColors。似乎有更好的出路。有什么建议吗? 最佳答案 将颜色存储为1,2,3,4…(越小越好,以便快速检索)。然后在一个全局类中,有一个基于整数返回颜色的get函数。