8

On Android native to separate each application feature, structured the project, implementing architecture component and to make it easier to work in a team you can use modularization, so each person can focus on their respective work by focusing only on the module. If I want to make a flutter application with examples of 3 application features (login, register, profile) and want to implement modularization for each feature to make it easier to work as a team. How do you implement the modular? Are there references to its best practices for modularizing Flutter? Because if on Android Native there are already many related articles while I check for Flutter it hasn't found it yet.

R Rifa Fauzi Komara
  • 1,915
  • 6
  • 27
  • 54
  • You can take a look at the BLOC pattern in Flutter. You can also watch some of the latest FilledStacks videos on YouTube which explain how to modularize your application. – Martyns Jun 17 '19 at 09:25
  • 1
    Yes, I already implement it. But I want to make each feature of application as modular and then call each modular to the root of project ex: lib/main.dart. It's possible to do? – R Rifa Fauzi Komara Jun 18 '19 at 10:10

1 Answers1

12

Create each feature as a package(library) and add it whenever you want to the main app. For example in my app I use main.dart as a navigator manager and each screen is in different packages.

And this is an example of implementing it: https://github.com/rrifafauzikomara/flutter_modularization

R Rifa Fauzi Komara
  • 1,915
  • 6
  • 27
  • 54
LeTadas
  • 3,436
  • 9
  • 33
  • 65