life_hooks library

Classes

ContextfulLifeHook<T extends ContextfulLifeState>
A hook that provides a context-aware life state.
ContextfulLifeState
An abstract class representing a life state that has access to a BuildContext.
ContextfulLoadable
An interface for classes that can be loaded with a context.
FormHelper
A helper class for managing form state and operations.
FormHelperState
A state class for managing form operations.
LifeHook<T extends LifeState>
A hook that manages the lifecycle of a LifeState.
LifeState
An abstract class representing the state of a life hook.
StateInitializer
An abstract interface for state initializers that can load contextually.
StateLoader
A widget that manages the loading state of its child based on the provided StateInitializer.

Functions

useFormHelper() FormHelperState
A hook that provides a stateful form helper for managing form state.
useIsBool({bool initial = false}) ValueNotifier<bool>
A utility function that provides a ValueNotifier<bool> for managing boolean state in hooks.
useKeyboardVisibility() ValueNotifier<bool>
A hook that provides a ValueNotifier for keyboard visibility.
useStateBuilder<TState, TNotifier extends ValueNotifier<TState>>(_StateHookBuilder<TState, TNotifier> builder) → TNotifier
A hook that creates and manages a state notifier.