我想从实地“干 to”中抽取价值,以便在我的法典中作出必要调整。
消防基地收集/外地/地点
我的《法典》希望改进我的《宪法》
import package:cloud_firestore/cloud_firestore.dart ;
import package:flutter/material.dart ;
import package:inventory_app/screens/purchases/overview-purchases-syna.dart ;
import package:inventory_app/screens/purchases/overview-purchases-syno.dart ;
class Divided1 extends StatefulWidget {
const Divided1({super.key});
@override
State<Divided1> createState() => _Divided1State();
}
class _Divided1State extends State<Divided1> {
@override
Widget build(BuildContext context) {
return StreamBuilder(
stream: FirebaseFirestore.instance
.collection("pr_details")
.where("dropdwoncompany")
.snapshots(),
builder: (context, AsyncSnapshot<QuerySnapshot> snapshot) {
if (snapshot.data == "ซินเนติก") {
return OverviewPurchase();
} else {
return OverviewPurchase1();
}
});
}
}
总的来说,你可以看到:if(snapshot.data ==“ซินเนติก”
,因此,我想写一下,如果“dropdowncompany”=“ซินเนติก”---'>和职能Overview Purchase(
)正在运行,但如果它不等于“ซินเนติก”,它将履行其他职能,即