[英]Can't read files in Flutter on all platforms, the file can be seen on linux desktop but web(chrome) does not see it, nor does android
[英]I want to create flutter architecture that support all platforms like web ,desktop and mobile ui
我有 flutter 應用程序,它已發布,它得到了用戶的強烈響應,我的客戶想要制作該應用程序的網站,但 web 和應用程序中的 ui 完全不同,所以我想為我的應用程序創建適當的架構,所以如果客戶想要 ti創建桌面應用程序然后我必須添加 ui 部分所以任何人都可以幫助我創建 flutter 這個靈活的架構
您可以定義全新的 ui 並將其置於條件
導入 'package:flutter/foundation.dart' 顯示 kIsWeb;
if (kIsWeb) {
// running on the web!
} else {
// NOT running on the web! You can check for additional platforms here.
}
這可能會有所幫助
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.