flutter_modular 3.0.0-nullsafety.32 flutter_modular: ^3.0.0-nullsafety.32 copied to clipboard
Smart project structure with dependency injection and route management
[2.5.0] - #
- Navigator 2.0
- Fixed Modular.link
- Refactor RouteGuard
- Added Modular.to.navigate
- Added 3 new bind factories
- Bind.factory
- Bind.singleton
- Bind.lazySingleton
[2.0.1] - 21 Sep 2020 #
- added onChangeRoute propety in RouterOutlet
[2.0.0+1] - 21 Ago 2020 #
Welcome to Flutter Modular 2.0!!! #
Break Changes #
Router object Renamed to ModularRouter.
//before
@override
List<Router> get routers => [
Router('/', (i, args) => LoginPage()),
Router('/home', (i, args) => HomePage()),
];
//now 2.0
@override
List<ModularRouter> get routers => [
ModularRouter('/', (i, args) => LoginPage()),
ModularRouter('/home', (i, args) => HomePage()),
];
- New Widget
RouterOutletList
(Check doc); Inject.params
is deprecated
[1.3.1] - 19 Jul 2020 #
- Prevent StackOverflow in Injections
[1.3.0] - 12 Jul 2020 #
- modular_codegen integration.
- Added defaul value in Modular.get
//return AppBlocMock if no injectable AppBloc in module.
var appBloc = Modular.get(defaultValue: AppBlocMock());
- Fix CI (Tests) and Lints
- Update docs
[1.2.6+1] - 23 Jun 2020 #
- Direct call Inject
@override
List<Bind> get binds => [
Bind((i) => HomeBloc(repository: i(), appBloc: i())),
Bind((i) => HomeRepository(dio: i())),
Bind((i) => Dio()),
];
Use i() instead i.get()
[1.2.5+1] - 26 May 2020 #
- Fix Modular.link bug
- Smooth Animation Navigator: 56% faster navigation animations
[1.2.4] - 23 May 2020 #
- Welcome Navigator API 2.0!!!
- Added push, pushReplacement in Modular.to and Modular.link;
- Added Modular.navigatorDelegate for tests mocks. Just implements IModularNavigator.
//Modular.to and Modular.link will be called MyNavigatorMock implements!
Modular.navigatorDelegate = MyNavigatorMock();
[1.2.3] - 19 May 2020 #
- Health suggestions
- Added Contributors in README
- Fix RouterOutlet
- Fix Modular.link
[1.2.1] - 15 May 2020 #
- Fix bugs
- new Modular.link for Navigation in Current Module;
//Modules home>product
Modular.to.pushNamed('/home/product/list');
Modular.to.pushNamed('/home/product/detail/:id');
//into product module, use Modular.link and navigate between routes of current Module (Product)
Modular.link.pushNamed('/list');
Modular.link.pushNamed('/detail/:id');
Use Modular.to for literal paths or Modular.link for routes in current module.
- Finally, use Modular.to.path (or Modular.link.path) if you want see the "Current Route Path".
[1.1.2] - 13 Apr 2020 #
- Fix bugs
[1.1.1] - 07 Apr 2020 #
- Added showDialog
Modular.to.showDialog(
barrierDismissible: false,
builder: (_) => AlertDialog(),
);
[1.0.0] - 24 Mar 2020 #
- Release!!!
[0.5.6] - 13 Mar 2020 #
- Added keepAlive flag in RouterOutlet.
[0.5.5] - 08 Mar 2020 #
- Fix StackOverflow error
- Fix RouteGuard
- Fix Transitions Animation
- PREVIEW: RouterOutlet Widget Use Navigation in BottomBarTab or Drawer
PageView(
controller: controller
children: [
RouterOutlet(
module: Tab1Module()
),
RouterOutlet(
module: Tab2Module()
),
RouterOutlet(
module: Tab3Module()
),
]
),
NOTE: Navigation is only Navigator.of (context) and only uses the module's literal route path.
[0.5.3] - 05 Mar 2020 #
- Prevent StackOverflow
[0.5.2] - 20 Feb 2020 #
- Prevent StackOverflow
[0.5.1] - 15 Feb 2020 #
- fix #52
[0.5.0] - 13 Feb 2020 #
- Added router generic type
@override
List<ModularRouter> get routers => [
//type router with return type
Router<String>('/event', child: (_, args) => EventPage()),
]
Now you can type your pushNamed and pop
String value = await Modular.to.pushNamed<String>();
//and
Modular.to.pop('My String');
[0.4.7] - 9 Feb 2020 #
- Added Custom Transition.
- Added Modular.args (get route params in Controller).
- (PREVIEW) RouterGuard in child routes.
- Fix error in WidgetTests
- Added Print routers in debugMode
[0.4.5] - 7 Feb 2020 #
- Added not lazy Objects
@override
List<Bind> get binds => [
Bind((i) => OtherWidgetNotLazy(), lazy: false),
];
[0.4.4] - 6 Feb 2020 #
- fix RouterGuards
- Added Modular.debugMode = false;
- Improve documentations
- Fix Error in initalRoute
[0.4.3] - 1 Feb 2020 #
- fix RouterGuards
- Added Modular.debugMode = false;
[0.4.2] - 1 Feb 2020 #
- fix routerGuards
- fix tests
[0.4.1] - 30 Jan 2020 #
- Internal Inject Interface reference
[0.4.0] - 28 Jan 2020 #
- added Modular.dispose();
- ModularState
- Removed InjectMixin
[0.3.5+1] - 26 Jan 2020 #
- fix module widget
- fix inject error
[0.3.3+1] - 18 Jan 2020 #
- Modular is BETA!!!
- You can now control navigation without the context!
- Added Modular.to and replace Navigator.of(context)
- Added Modular.get and replace AppModule.to.get
- Added flag "singleton" in Bind injection
- Fix Router Guard
[0.1.8] - 08 Jan 2020 #
- fix test errors (initModule)
- Added modularException
[0.1.4] - 24 Dec 2019 #
- fix #7 and more
[0.1.3] - 17 Dec 2019 #
- Route Settings, RemoveUntil fix #11
[0.1.1] - 17 Dec 2019 #
- Fix tests
[0.1.0+1] - 16 Dec 2019 #
- Added Route Transitions.
- Change ModularWidget to ModularApp.
[0.0.10] - 14 Dec 2019 #
- Added logo
[0.0.8] - 13 Dec 2019 #
- Route Guard
[0.0.7] - 10 Dec 2019 #
- Dynamic Router
- Added Doc Translation
- Change BrowserModule to MainModule
- Change CommonModule to ChildModule
- Corrigido erro de blink na primeira rota
- fix routes param
[0.0.1] - 8 Dec 2019 #
- First Release