[英]I want to create flutter architecture that support all platforms like web ,desktop and mobile ui
I have flutter app and it was published and it has great response from user noe my client want to make website of that app but ui was totally different in web and app so I want to create proper architecture for my app so if may client want ti create desktop app also then I have to just add ui part so can anyone help me to create this flexible architecture of flutter我有 flutter 应用程序,它已发布,它得到了用户的强烈响应,我的客户想要制作该应用程序的网站,但 web 和应用程序中的 ui 完全不同,所以我想为我的应用程序创建适当的架构,所以如果客户想要 ti创建桌面应用程序然后我必须添加 ui 部分所以任何人都可以帮助我创建 flutter 这个灵活的架构
you can define the whole new ui and put it in condition您可以定义全新的 ui 并将其置于条件
import 'package:flutter/foundation.dart' show kIsWeb;导入 'package:flutter/foundation.dart' 显示 kIsWeb;
if (kIsWeb) {
// running on the web!
} else {
// NOT running on the web! You can check for additional platforms here.
}
might this will help这可能会有所帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.