LoadingView class Views

Loading View

Copyright (c) 2025, OSMEA Team https://github.com/masterfabric-mobile/osmea/tree/dev/packages/core

Loading view for displaying loading states Uses MasterViewCubit for lifecycle management

Inheritance

Constructors

LoadingView({required dynamic goRoute(String), Map<String, dynamic> arguments = const {}, String? initialMessage, double? initialProgress})

Properties

appBarPadding AppBarPaddingVisibility?
finalinherited
arguments Map<String, dynamic>
finalinherited
backgroundColor Color?
finalinherited
bottomNavigationBar Widget?
Optional bottom navigation bar widget for the Scaffold.
finalinherited
coreAppBar PreferredSizeWidget Function(BuildContext, LoadingCubit)?
finalinherited
coreBottomBar Widget? Function(BuildContext, LoadingCubit)?
finalinherited
currentView MasterViewCubitTypes
The current high-level view state used by the scaffold and snackbars.
finalinherited
customAppBarPadding double?
finalinherited
customFooterSpacerType CoreSpacerType?
finalinherited
customHorizontalPadding double?
finalinherited
customNavbarSpacerType CoreSpacerType?
finalinherited
customVerticalPadding double?
finalinherited
defaultAppBarPadding double
finalinherited
defaultFooterSpacerType CoreSpacerType
finalinherited
defaultHorizontalPadding double
finalinherited
defaultNavbarSpacerType CoreSpacerType
finalinherited
defaultVerticalPadding double
finalinherited
extendBody bool?
finalinherited
extendBodyBehindAppBar bool?
finalinherited
footerSpacer SpacerVisibility?
finalinherited
goRoute → dynamic Function(String path)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
horizontalPadding PaddingVisibility?
finalinherited
initialMessage String?
final
initialProgress double?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDevGrid bool
finalinherited
snackBarFunction Function
finalinherited
useSafeArea bool?
finalinherited
verticalPadding PaddingVisibility?
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
buildError(String message, {VoidCallback? onRetry}) Widget
Minimal error presentation with optional retry handler.
inherited
buildLoading({Color color = Colors.blue, double size = 50.0}) Widget
Simple loading indicator for quick feedback while data loads.
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
initialContent(LoadingCubit viewModel, BuildContext context) Future<void>
Called when ViewModel is ready with a BuildContext
override
inherited
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
viewContent(BuildContext context, LoadingCubit viewModel, LoadingState state) Widget
UI content
override

Operators

operator ==(Object other) bool
The equality operator.
inherited