core library
======================= DESIGN SYSTEM
Classes
- AppCupertinoButton
- BasePreferences
- --- PREFERENCE SYSTEM ARCHITECTURE ---
- CustomError
- CustomErrorState
- DeviceHelper
- Device-specific utilities for responsive design
- DeviceRegistry
- Centralized registry for managing device-specific settings in the design system.
- DeviceSecurityHelper
- Stub implementation of DeviceSecurityHelper for web and unsupported platforms.
- ErrorView
- FlutterSecureStore
-
SecureStore backed by
flutter_secure_storage. This is the default. - FontHelper
- FontKey
- FontRegistry
- FontWeightProtocol
- A protocol for font weight types used by FontHelper
- ForceUpdateError
- GeneratePreferences
-
Annotates a class that extends
BasePreferencesto trigger code generation. - InApp
- Annotates a field for in-memory storage only.
- JailBroken
- LanguageManager
- Loaded
- Loading
- MemorySecureStore
- In-memory SecureStore. Values are lost when the app closes, so it is meant for tests and for platforms without secure storage where losing the value on restart is acceptable.
- NoData
- NoNetwork
- OverlayLoading
-
PreferencesListener<
B extends StateStreamable< S> , S, T> - Internal widget that powers preferencesListener.
- PreferencesStorage
- App-wide registry for the storage used by BasePreferences.
- SearchError
- Secure
-
Annotates a field to be stored securely via
FlutterSecureStorage. - SecureStore
-
Where
@Securepreference fields are persisted. - SecurityCheckResult
- Security check result for platforms where native checks are unavailable.
- ServerError
- UnderlinedButton
- UnexpectedError
- UserDefault
-
Annotates a field for persistence in standard
SharedPreferences. - ViewState
- ViewStateTexts
- Texts used by the default error views of WithViewState. Override any of them to localise the screen.
- WithViewState
- Wraps child and shows a loader, an overlay loader or an error view according to viewState.
Enums
- ErrorDisplayMode
- How WithViewState shows an error state.
- Position
- SupportedLocale
- Enum for supported locales with their string representations.
Functions
-
emptyBlocListener<
B extends StateStreamable< (S> , S>) → BlocListener< B, S> -
preferencesListener<
B extends StateStreamable< (S> , S, T>{required ValueListenable< T> listenTo, required void listener(BuildContext context, T value), bool listenWhen(T previous, T current)?}) → PreferencesListener<B, S, T> -
A function-based listener for preferences, designed to be used
within a
MultiBlocListener.
Typedefs
- ErrorMessageResolver = String? Function(dynamic errorModel)
-
Extracts a human-readable message from a state's
errorModel. - ViewStateErrorBuilder = Widget? Function(BuildContext context, ViewState state, VoidCallback retry)
-
Builds a custom error view for
state. Returnnullto use the default.