'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?



Solution 1:[1]

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.

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tim Brückner
Solution 2