简体   繁体   English

即使 Web 版本 100% 不同,我是否应该在同一个 Flutter 项目中为 android 和 iOS 拥有应用程序的 Web 版本?

[英]Should I have the web version of an app in the same Flutter project for android and iOS, even though the web version is 100% different?

I have a Flutter app running on both android and iOS (Flutter + Firebase) but I'm implementing an admin dashboard that will only work on the web version.我有一个在 android 和 iOS(Flutter + Firebase)上运行的 Flutter 应用程序,但我正在实现一个只能在 Web 版本上运行的管理仪表板。 I was thinking about developing the dashboard with python + react but since it is a pretty simple interface, I've decided to develop it in Flutter web.我正在考虑使用 python + react 开发仪表板,但由于它是一个非常简单的界面,我决定在 Flutter web 中开发它。

My question is: Should I have the admin dashboard be a separate Flutter project or should I keep it all on the same code base?我的问题是:我应该将管理仪表板作为一个单独的 Flutter 项目,还是应该将其全部保存在同一个代码库中?

It always depends, but since the admin interface seems to be completely independent from the rest and does not share code with the mobile application, I would make a second (Flutter) project out of it.它总是取决于,但由于管理界面似乎完全独立于其余部分并且不与移动应用程序共享代码,我会用它制作第二个(Flutter)项目。

If your admin interface depends heavily on tables, maybe use something different than Flutter.如果您的管理界面严重依赖表,则可能使用与 Flutter 不同的东西。 The material tables which come with Flutter are rather limited at the moment.目前 Flutter 自带的材质表比较有限。

On the Firebase side, it all depends on what data the apps needs to access.在 Firebase 方面,这完全取决于应用程序需要访问哪些数据。

If your iOS/Android and admin apps all need to access the same user list, database, or any other data in Firebase, they need to be in the same Firebase project.如果您的 iOS/Android 和管理应用都需要访问同一用户列表、数据库或 Firebase 中的任何其他数据,则它们需要位于同一 Firebase 项目中。

If the apps access separate data sets, they should be in separate Firebase projects too.如果应用访问不同的数据集,它们也应该位于不同的 Firebase 项目中。


On the Flutter side, for me, it depends on the number of icons, binaries or installations.在 Flutter 方面,对我来说,这取决于图标、二进制文件或安装的数量。

If any user (including yourself) can only have a single app installed, and it switches mode based on for example sign-in credentials, then I'd make it a single app.如果任何用户(包括您自己)只能安装一个应用程序,并且它会根据例如登录凭据切换模式,那么我会将其设为一个应用程序。

If even a single user can have multiple of the apps installed, I'd make them separate apps.如果即使是单个用户也可以安装多个应用程序,我会让它们成为单独的应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在 Flutter 上的同一项目上创建 android 版本的 apk 后构建一个 iOS 应用程序吗? - can i built an iOS app after creating it's android version's apk on same project on Flutter? Flutter 应用程序未在 iOS 和 Android 上使用相同版本的 Flutter 和 Dart 的不同 PC/MAC 上运行 - Flutter app is not running on different PC/MAC on both iOS and Android with same version of Flutter and Dart 即使我做了 flutter clean,flutter build apk 也会创建旧版本的应用程序 - flutter build apk create old version app even though I did flutter clean 检查这是Android还是Web应用程序版本? - Checking if this is Android or web app version? 不同的Android和iOS应用版本 - Different Android and iOS app version 我应该在相同或不同的项目中做 android 平板电脑版本项目? - shall i do android tablet version project in same or as different project? 我应该为Android应用程序项目使用不同的图标大小吗 - Should i have different icon sizes for android app project 即使用户没有安装要更新的应用程序,我也可以增加iOS / Android应用程序的版本号吗 - Can I increment version number of iOS/Android app even users don't install app to update 我刚刚在Eclipse中创建了一个小的android项目,我应该将哪些文件添加到版本控制中? - I have just created small android project in Eclipse, which files I should add to version control? 在 iOS 和 Android 的 Flutter 项目中运行 firebase 的最小版本是什么? - What is the minumun version to run firebase in a flutter project for iOS and Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM