0

My query is how can we build multiple apps with different UI's from one project. Example:

HomePage has (home1, home2, home3) 3 different Ui's , i want to add home1 for one app, home2 for other app and so on.

So that i can create similar apps with slightly different UI.

How can we configure the same in flutter?

Any help would be appreciated.

Suraj Gupta
  • 437
  • 8
  • 19
  • https://stackoverflow.com/questions/55004302/how-do-you-pass-arguments-from-command-line-to-main-in-flutter-dart – Nagual Feb 14 '21 at 07:51

1 Answers1

0

You can use flavors for it. In few words, you should create a project with common features and separate it by packages (because Google Play doesn't support apps with the same package name). Your features and different screens (and icons and other app specific resources) separated in flavors, and when you build specific flavor - you build separated app (in your case). In code you can split features by flavor type (find more in this question).

fartem
  • 2,361
  • 2
  • 8
  • 20