简体   繁体   English

我想创建支持 web、桌面和移动 ui 等所有平台的 flutter 架构

[英]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.

相关问题 无法在所有平台上读取 Flutter 中的文件,该文件在 linux 桌面上可以看到但 web(chrome) 看不到它,android 也看不到 - 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 是Gstreamer还是VLC? 对于台式机和移动平台? - Gstreamer or VLC? For desktop and mobile platforms? Flutter 项目用于原生移动和桌面 web 浏览器 - Flutter projects for native mobile and desktop web browser 聊天功能的框架,支持所有移动平台和.net Web应用程序 - framework for chatting functionality that supports all mobile platforms and .net web application 我想在 flutter 中创建如下图所示的底部工作表对话框 - I want to create bottom sheet dialog like this image below in flutter 我想创建这个UI - I want to create this UI 为多个平台创建移动框架 - Create mobile framework for multiple platforms 如何在 Flutter 中创建类似 Bottomsheet 的 UI - How to create a UI like Bottomsheet in Flutter 我想重新创建此UI,但不知道如何调整此按钮的形状(Flutter) - I want to re-create this UI but I don't know how to shape this buttons (Flutter) 将现有的桌面应用程序重新架构为支持多个平台的技术 - Rearchitecting existing Desktop application to technology that support multiple platforms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM