简体   繁体   中英

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. 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.

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?

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.

If your admin interface depends heavily on tables, maybe use something different than Flutter. The material tables which come with Flutter are rather limited at the moment.

On the Firebase side, it all depends on what data the apps needs to access.

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.

If the apps access separate data sets, they should be in separate Firebase projects too.


On the Flutter side, for me, it depends on the number of icons, binaries or installations.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM