VoConsumerState<T extends ConsumerStatefulWidget> class
abstract
A ConsumerState with the same helpers as VoState.
class _HomeScreenState extends VoConsumerState<HomeScreen> {
@override
Widget buildView(BuildContext context, WidgetRef ref) {
return Text(ref.watch(titleProvider), style: typography.titleLarge);
}
}
Constructors
Properties
- canPop → bool
-
no setterinherited
- colors → VoColors
-
no setterinherited
- colorScheme → ColorScheme
-
no setterinherited
- componentTheme → VoComponentTheme
-
no setterinherited
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- currentPath → String
-
no setterinherited
- flutterTextTheme → TextTheme
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDarkMode → bool
-
no setterinherited
- isDesktop → bool
-
no setterinherited
- isPhone → bool
-
no setterinherited
- isTablet → bool
-
no setterinherited
- mediaQuery → MediaQueryData
-
no setterinherited
- messenger → ScaffoldMessengerState
-
no setterinherited
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- ref → WidgetRef
-
An object that allows widgets to interact with providers.
latefinalinherited
- router → GoRouter
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safePadding → EdgeInsets
-
no setterinherited
- screenHeight → double
-
no setterinherited
- screenSize → Size
-
no setterinherited
- screenWidth → double
-
no setterinherited
- sizes → VoSizes
-
Reading sizes also rebuilds the caller when the screen size changes,
since the values scale with it.
no setterinherited
- theme → ThemeData
-
no setterinherited
- typography → VoTypography
-
no setterinherited
- voContext → BuildContext
-
no setter
- widget → T
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
beforeBuild(
BuildContext context, WidgetRef ref) → void -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
buildView(
BuildContext context, WidgetRef ref) → Widget -
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant T oldWidget) → void -
Called whenever the widget configuration changes.
inherited
-
dismissAllToasts(
) → void -
inherited
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
initState(
) → void -
Called when this object is inserted into the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop<
T> ([T? result]) → void -
inherited
-
push(
String route) → void -
inherited
-
pushAndClearStack(
String route) → void -
inherited
-
pushReplace(
String route) → void -
inherited
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
showErrorToast(
String message, {String? title = 'Oops!', VoToastPosition? position}) → String -
inherited
-
showInfoToast(
String message, {String? title = 'Information', VoToastPosition? position}) → String -
inherited
-
showSnackBar(
SnackBar snackBar) → void -
inherited
-
showSuccessToast(
String message, {String? title = 'Success', VoToastPosition? position}) → String -
inherited
-
showToast(
String message, {String? title, VoToastType type = VoToastType.info, VoToastStyle? style, VoToastPosition? position, Widget? action, Duration? duration, bool isAutoDismissible = true}) → String -
inherited
-
showWarningToast(
String message, {String? title = 'Attention Please', VoToastPosition? position}) → String -
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
unfocus(
) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited