get_it_modular_with_auto_route 2.0.0
get_it_modular_with_auto_route: ^2.0.0 copied to clipboard
An integration for get_it_modular that simplifies modular routing by providing convenient wrappers and helpers for the auto_route package.
1.0.0 #
- Initial stable release of the
get_it_modularpackage. - Includes
ModuleContractwith a self-managing lifecycle for child dependencies. - Includes
ModuleScope, a lifecycle-managing widget with a built-in assertion for improved developer safety.
2.0.0 The Architectural Update #
- BREAKING: Rearchitected the package to use a more formal, contract-based approach.
- BREAKING: Replaced the
WithModulesmixin and previous organizational patterns with a set of abstract contracts:ModularAppContract,ModuleSettingsContract, andAppRouterContract. - NEW:
ModuleSettingsContractprovides a centralized place to orchestrate module registration and initialization. - NEW:
AppRouterContractprovides a base class for a dynamic router that builds its route list from all registered modules. - NEW:
ModularAppContractserves as the abstract root of the application, tying all the core contracts together. - REFINED:
ModuleContractlifecycle logic and registration helpers have been improved for robustness, now including checks to prevent duplicate registrations.