![](/img/trans.png)
[英]How can I store a list of folders and each folder has list of items in Firestore using Flutter
[英]How can I create a dynamic price list that is dependent on the type of car that the user has using flutter?
我有一個汽車服務部分,當用戶點擊時,他或她會被定向到價目表頁面。 我的問題是列表應該是動態的,並且與擁有轎車的用戶相比,擁有 SUV 的用戶是不同的。 如何使用 flutter 來實現這個?
您可以將數據傳遞到您將要渲染的頁面的 class ,您將在其中切換汽車的類型或其他內容並執行邏輯。
在 class 中聲明一個屬性並在 class 簽名上要求它。然后當您推送頁面時,為該屬性提供一個值。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.