flutter_modular library

Classes

AsyncBind<T extends Object>
AsyncBind represents an asynchronous Bind that can be resolved before module initialization by calling Modular.isModuleReady() or called with Modular.getAsync()
Bind<T extends Object>
Represents and manufactures an object instance that can be injected.
BindInject<T extends Object>
Specific instance for modular_codegen
ChildRoute<T>
Represents a route in the modular route tree. You will be asked for a route name which should always start with '/' and a widget which will be re-rendered when the route is requested.
CustomTransition
Default
Disposable
A class which implements Disposable can be disposed automatically once user leaves a Module
IModularNavigator
Injectable
ModularApp
Widget responsible for starting the Modular engine. This should be, if possible, the first widget in your application.
ModularAppState
ModularFlags
Flags can change Modular behavior. isDebug = Enables text printing for debugging. isCupertino = Works with Cupertino-style routes. experimentalNotAllowedParentBinds = Prohibits taking any bind of parent modules, forcing the imports of the same in the current module to be accessed. This is the same behavior as the system.
ModularProvider<T extends BindContext>
ModularRoute
Represents a route within a RouteContext.
ModularState<TWidget extends StatefulWidget, TBind extends Object>
Module
A Module gathers all Binds and Routes referring to this context. They are usually distributed in the form of features or a monolithic representation of the app. At least one module is needed to start a Modular project.
ModuleRoute<T>
This route represents a cluster of routes from another module that will be concatenated to the context of the parent module.
PageTransition<T>
ParallelRoute<T>
RedirectRoute
A route to redirect.
RouteGuard
RouteGuard implements Middleware and adds guard behavior, authorizing or not the route via the canActivate() method;
RouterOutlet
It acts as a Nested Browser that will be populated by the children of this route.
RouterOutletState
WidgetModule
WildcardRoute<T>
Escape route if nothing is found in current context. Usually serves as a wildcard, and is called if no path matching the context is found.

Constants

Data → const _ModularData
Param → const _ModularParam

Properties

Modular → IModularBase
Instance of Modular for search binds and route.
no setter

Functions

cleanGlobals() → void
cleanModular() → void
downToUp<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
fadeInTransition<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
leftToRight<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
leftToRightWithFade<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
rightToLeft<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
rightToLeftWithFade<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
rotate<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
scale<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
size<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>
upToDown<T>(Widget builder(BuildContext, ModularArguments), Duration transitionDuration, RouteSettings settings, bool maintainState) PageRouteBuilder<T>

Typedefs

ModularChild = Widget Function(BuildContext context, ModularArguments args)
RouteBuilder<T> = Route<T> Function(WidgetBuilder , RouteSettings)
SelectCallback<T> = dynamic Function(T bind)