- Try Modular's Router Outlet as a bottom navigation bar routing system while keeping pages "alive"
- Feature-based
- Change Notifier
- package flutter_modular
- Modular
- Dart 2.19.6
- Flutter 3.7.10
- LIFO (Last In First Out): The last module in the children list is the first tab
- See: root_module.dart
- Keep states in controllers or stores
- Bind those classes in their respective modules and export them (i.e., export: true)
- Import those modules in the module Root
- Result: Even if we switch modules, child modules' controllers and stores won't be disposed because their lifecycles are bound to the module Root's lifecycle
- Alternative or Improvement: Hydrating strategy, as Hydrated Bloc does