dirt_arch library

Classes

AnimatedCard
AnimatedText
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()
BackButtonBehavior
此枚举会决定Toast对于物理返回键的处理方式
Bind<T extends Object>
Represents and manufactures an object instance that can be injected.
BindInject<T extends Object>
Specific instance for modular_codegen
BotToast
When generating widgets using the ToastBuilder method, please ensure that the generated widget's background does not absorb click events. For example, Scaffold and Material widgets will by default occupy the entire parent space and absorb events (even if they are transparent). You can refer to the material.dart -> _RenderInkFeatures class -> hitTestSelf method for specific examples. If you must generate such widgets, consider using IgnorePointer. Failure to follow this rule may result in the malfunction of certain features, such as the allowClick feature.
BotToastNavigatorObserver
If your project has multiple Navigator instances, please add the BotToastNavigatorObserver to the Navigator.observers.
BotToastNavigatorObserverProxy
BubbleBottomBar
BubbleBottomBarItem
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.
ChipBuilder
Interface to apply any custom badge chip.
ChipMenuItem<T>
ChipMenuList<T>
Connectivity
Discover network connectivity configurations: Distinguish between WI-FI and cellular, check WI-FI status and more.
ConvexAppBar
Online example can be found at http://hacktons.cn/convex_bottom_bar.
ConvexAppBarState
State of ConvexAppBar.
ConvexButton
Single convex button widget
CustomTransition
Datasource<T extends Entity>
Default
DelegateBuilder
Item builder.
DirtBottomBar
DirtBubbleBottomBar
DirtBubbleBottomBarItem
DirtSnackBar
DirtTabItem<T>
Disposable
A class which implements Disposable can be disposed automatically once user leaves a Module
Entity
FormBuilder
A container for form fields.
FormBuilderCheckbox
Single Checkbox field
FormBuilderCheckboxGroup<T>
A list of Checkboxes for selecting multiple options
FormBuilderChipOption<T>
An option for filter chips.
FormBuilderChoiceChip<T>
A list of Chips that acts like radio buttons
FormBuilderDateRangePicker
Field for selecting a range of dates
FormBuilderDateTimePicker
Field for Date, Time and DateTime input
FormBuilderDropdown<T>
Field for Dropdown button
FormBuilderField<T>
A single form field.
FormBuilderFieldOption<T>
An option for fields with selection options.
FormBuilderFieldState<F extends FormBuilderField<T>, T>
FormBuilderFilterChip<T>
Field with chips that acts like a list checkboxes.
FormBuilderRadioGroup<T>
Field to select one value from a list of Radio Widgets
FormBuilderRangeSlider
Field to select a range of values on a Slider
FormBuilderSegmentedControl<T extends Object>
Field for selection of a value from the CupertinoSegmentedControl
FormBuilderSlider
Field for selection of a numerical value on a slider
FormBuilderState
FormBuilderSwitch
On/Off switch field
FormBuilderTextField
A Material Design text field input.
GetWidget<T>
GroupedCheckbox<T>
GroupedRadio<T>
IModularNavigator
Injectable
Mapper<T>
MaskTextInputFormatter
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.
MutationWidget<T>
PageTransition<T>
ParallelRoute<T>
PostWidget<T>
PreferDirection
QueryWidget<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
StyleHook
Default tab styles are configured with internal layout/size, these are not exposed like color or height information. You can use ConvexAppBar.builder to fully customize the tab widget.
StyleProvider
Hook for internal tab style. Unlike the ConvexAppBar.builder, you may want to update the tab style without define a new tab style.
SubscriptionWidget<T>
TabItem<T>
Tab item used for ConvexAppBar.
TickerProviderImpl
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

ACTION_INNER_BUTTON_SIZE → const double
Default size for active icon in tab.
ACTION_LAYOUT_SIZE → const double
Default size for active tab.
BAR_HEIGHT → const double
Default height of the AppBar.
CONVEX_SIZE → const double
Default size of the curve line.
CURVE_TOP → const double
Default distance that the child's top edge is inset from the top of the stack.
Data → const _ModularData
ELEVATION → const double
Default elevation of ConvexAppBar.
Param → const _ModularParam

Properties

initialOffset Map<AnimatedCardDirection, Offset>
getter/setter pair
Modular → IModularBase
Instance of Modular for search binds and route.
no setter

Functions

BotToastInit() TransitionBuilder
cleanGlobals() → void
cleanModular() → void
configureInitialOffset(BuildContext context) → dynamic
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

CancelFunc = void Function()
Toast的关闭函数,调用将会提前关闭对应的Toast
CustomTabBuilder = Widget Function(BuildContext context, int index, bool active)
Tab builder.
FormBuilderFields = Map<String, FormBuilderFieldState<FormBuilderField, dynamic>>
A type alias for a map of form fields.
FutureFunc = Future<void> Function()
GestureTapIndexCallback = void Function(int index)
Tab callback, index are tab index which is being clicked.
ModularChild = Widget Function(BuildContext context, ModularArguments args)
PopTestFunc = bool Function()
RouteBuilder<T> = Route<T> Function(WidgetBuilder , RouteSettings)
SelectCallback<T> = dynamic Function(T bind)
TapNotifier = bool Function(int index)
Fire before GestureTapIndexCallback is handled, you may return false to block the tap event.
ToastBuilder = Widget Function(CancelFunc cancelFunc)
ValueTransformer<T> = dynamic Function(T value)
WrapAnimation = Widget Function(AnimationController controller, CancelFunc cancelFunc, Widget widget)
WrapWidget = Widget Function(CancelFunc cancelFunc, Widget widget)