cubes library

Classes

CAnimatedList<T>
CBottomSheetController<T>
Class responsible for configuring the BottomSheets
CDialogController<T>
Class responsible for configuring the dialogs
CFeedBackControl<T>
class used to control feedbacks
CFeedBackManager
Widget that allows us to control Dialog, BottomSheet and SnackBars using ObservableValue
CInjector
Interface responsible to manager dependency injector
CObscureTextButtonConfiguration
CSnackBarController<T>
Class responsible for configuring the SnackBars
CTextFormField
CTextFormField is a TextFormField with modifications to use ObservableValue to control.
CTextFormFieldControl
Class used to control CCTextFormField
Cube
Base to create Cube
CubeAction
Created by
CubeConsumer<C extends Cube>
Widget responsible for getting instance and providing Cube
CubeProvider<C extends Cube>
Used to provide Cube
Cubes
Core of the package where you will have useful functions and settings
CubeWidget<C extends Cube>
Widget created to replace StatelessWidget and facilitate the use of Cube This is responsible for getting instance and providing Cube
ObservableList<T>
Class that represents our list-type observable
ObservableValue<T>
Class that represents our observable
SimpleCube

Mixins

BottomSheetFeedBackMixin<T extends StatefulWidget>
Mixin responsible for adding listeners to ObservableValue and controlling the display of BottomSheets
CubeNavigation
Created by
CubeStateMixin<T extends StatefulWidget, C extends Cube>
Mixin to user Cube in StatefulWidget
DialogFeedBackMixin<T extends StatefulWidget>
Mixin responsible for adding listeners to ObservableValue and controlling the display of dialogs
SnackBarFeedBackMixin<T extends StatefulWidget>
Mixin responsible for adding listeners to ObservableValue and controlling the display of SnackBars

Extensions

BoolExtensions on bool
Created by
BuildContextExtensions on BuildContext
CTextFormFieldControlExtensions on ObservableValue<CTextFormFieldControl>
FeedbackControlExtensions on ObservableValue<CFeedBackControl<T>>
ListToObservableValue on List<T>
Extension to facilitate create ObservableList
ObservableValueExtension on T
Extension to facilitate create ObservableValue
ObservableValueExtensions on ObservableValue
Extension to facilitate the use of CObserver
StateExt on State<StatefulWidget>
Mixin postFrame to uses in State

Functions

genericConditional<T>({required bool condition, required T match, T? notMatch}) → T?
Method util uses to return anything for conditional.
inject<T extends Object>({String? dependencyName}) → T

Typedefs

AnimatedListCubeItemBuilder<T> = Widget Function(BuildContext context, T item, Animation<double> animation, TypeAnimationListEnum type)
AsyncCubeWidgetBuilder<C extends Cube> = Widget Function(BuildContext context, C cube)
CDependencyInjectorAsyncBuilder<T> = Future<T> Function(CInjector injector)
Function to receive dependency to inject
CDependencyInjectorBuilder<T> = T Function(CInjector injector)
Function to receive dependency to inject
CubeWidgetDispose<C extends Cube> = bool Function(C cube)
InitCallback<C extends Cube> = dynamic Function(C cube)
ModifyValue<T> = T Function(T value)
OnActionChanged<A extends Cube, CubeAction> = void Function(A valueA, CubeAction valueB)
Function to notify Actions
SnackBarByDataBuilder<T> = SnackBar Function(T data, BuildContext context)
WidgetByDataBuilder<T> = Widget Function(T data, BuildContext context)