presentation/presentation library
Presentation layer exports for bloc_small package.
This barrel file exports all presentation components including:
- Base classes for pages (BLoC and Cubit)
- BLoC implementations (MainBloc, CommonBloc)
- Cubit implementations (MainCubit)
- Reusable widgets (LoadingIndicator)
Classes
- BaseAppRouter
- Base class for implementing application routing using auto_route.
-
BaseBlocDelegate<
E extends MainBlocEvent, S extends MainBlocState> -
BaseBlocPage<
B extends MainBloc< MainBlocEvent, MainBlocState> > - A base class for all stateless widget pages in the application that use a Bloc.
-
BaseBlocPageState<
T extends StatefulWidget, B extends MainBloc< MainBlocEvent, MainBlocState> > - A base class for all StatefulWidget states in the application that use a Bloc.
-
BaseCubitDelegate<
S extends MainBlocState> -
BaseCubitPage<
C extends MainCubit< MainBlocState> > - A base class for all stateless widget pages in the application that use a Cubit.
-
BaseCubitPageState<
T extends StatefulWidget, C extends MainCubit< MainBlocState> > - A base class for all StatefulWidget states in the application that use a Cubit.
-
BasePageDelegate<
T extends StatefulWidget, B extends IStateManager< Object?> > - A base delegate class for StatefulWidget states that use either Bloc or Cubit.
-
BasePageStatelessDelegate<
B extends IStateManager< Object?> > - A base page for widgets that use either a Bloc or a Cubit and hold no state of their own beyond the injected state manager.
-
BasePageStatelessDelegateState<
B extends IStateManager< Object?> > - Holds the dependencies resolved for a BasePageStatelessDelegate.
- ClearComponentLoading
- Force-clears a loading key regardless of how many operations hold it.
- CommonBloc
- CommonEvent
- Base class for all common application-wide events.
- CommonState
- Represents the state of common application-wide features.
-
IStateManager<
S> - The contract a page's state manager must satisfy to be driven by a base page.
- LoadingIndicator
- A platform-aware loading indicator widget.
-
MainBloc<
E extends MainBlocEvent, S extends MainBlocState> - A base class for all Blocs in the application.
- MainBlocEvent
- A base class for all Bloc events in the application.
- MainBlocState
- A base class for all Bloc states in the application.
-
MainCubit<
S extends MainBlocState> - A base class for all Cubits in the application.
- SetComponentLoading
- Event to control loading state for a specific component or operation.
Mixins
-
BaseDelegate<
S extends MainBlocState> - Base delegate containing shared functionality between Bloc and Cubit.
- LoadingOverlayMixin
- Provides the loading overlay used by every base page class.
Properties
- debugActiveLoadingTimeoutTimers → int
-
Test-only view of live safety timers.
no setter
Functions
-
debugAssertSingletonRegistration<
T extends Object> (GetIt di) → void -
Verifies that
Tis registered with a lifetime the page family supports.