如何使用 firebase 在 flutter 中实现电话号码验证?我的应用程序需要在某个时间验证电话号码。不需要通过电话号码进行身份验证。我只需要验证我的号码。我如何实现它?
我想从 firestore 列出一种数据。每个文档都包含一个“状态”字段。我需要从列表中提取 3 种不同类型的状态。我如何在 dart 中为我的颤振项目做到这一点?
以下代码,它对我不起作用。
getStream() {
var snapshots = firestore.collection("booking")
.where("userId", isEqualTo: uid)
.where("status", isEqualTo: "confirmed")
.where("status", isEqualTo: "unconfirmed")
.where("status", isEqualTo: "unconfirmed quotation")
.snapshots();
return snapshots;
}
Run Code Online (Sandbox Code Playgroud) “ Cloud Firestore 覆盖已弃用的 API”
构建颤振应用程序时发生错误。
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.11.0+2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.11.0+2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\connectivity-0.4.3+1\android\src\main\java\io\flutter\plugins\connectivity\ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.0+1\android\src\main\java\io\flutter\plugins\firebase\core\FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Run Code Online (Sandbox Code Playgroud)