dartvex_flutter library
Flutter widgets and runtime adapters for building reactive Convex UIs.
Classes
-
AuthAuthenticated<
TUser> - Authentication state for a signed-in user.
-
AuthLoading<
TUser> - Authentication state used while an interactive login or cache restore is in progress.
- AuthSessionEndedError
-
Marks an error thrown by
AuthProvider.loginorAuthProvider.loginFromCacheas definitive: the provider no longer has a session (it expired, was revoked, or was never created). -
AuthState<
TUser> - Base class for authentication state exposed by ConvexAuthClient.
-
AuthUnauthenticated<
TUser> - Authentication state for a signed-out user.
- ConnectionStatus
- A rich, immutable snapshot of the client's connection to Convex.
- ConnectivityPlusSignal
-
A
ConnectivitySignalbacked by theconnectivity_plusplugin. -
ConvexAction<
T> - Widget that exposes an imperative Convex action and request snapshot to its child.
- ConvexAssetCache
- Caches binary assets (images, files) from Convex storage to disk, keyed by stable storage ID rather than expiring signed URLs.
- ConvexAssetCacheMetrics
- Optional interface custom cache managers can implement to expose metrics.
- ConvexAssetSnapshot
- Snapshot of an asset loading operation.
-
ConvexAuthBuilder<
TUser> - Widget that rebuilds when the current authentication state changes.
-
ConvexAuthClient<
TUser> - Convex client interface extended with authentication lifecycle APIs.
-
ConvexAuthProvider<
TUser> - Inherited widget that provides a ConvexAuthClient to auth widgets.
- ConvexAuthRefreshingBuilder
- Widget that rebuilds when the Convex auth-refreshing state changes.
- ConvexCachedImage
- Widget that displays an image from Convex storage using a disk cache.
- ConvexClientRuntime
-
Wraps a
convex.ConvexClientas a ConvexRuntimeClient. - ConvexConnectionBuilder
- Widget that rebuilds when the Convex connection state changes.
- ConvexConnectionIndicator
- Widget that switches between builders for connected and disconnected states.
- ConvexConnectionStatusBuilder
- Widget that rebuilds when the rich Convex ConnectionStatus changes.
- ConvexDownloadProgress
- Snapshot of an in-progress file download.
- ConvexFileDownloader
- Downloads files from URLs with byte-level progress tracking.
- ConvexFunctionCallerSource
-
Implemented by runtime clients that can hand out a core
convex.ConvexFunctionCaller— the interface generatedConvexApibindings (dartvex_codegen) andconvex.ConvexStorageare built on. - ConvexImage
- Widget that displays an image stored in Convex file storage.
-
ConvexMutation<
T> - Widget that exposes an imperative Convex mutation and request snapshot.
- ConvexOfflineImage
- A widget that displays an asset with offline support.
- ConvexPaginatedResult
- Immutable snapshot of a paginated query at one point in time.
- ConvexProvider
- Inherited widget that provides a ConvexRuntimeClient to descendant widgets.
-
ConvexQuery<
T> - Widget that subscribes to a Convex query and rebuilds from its snapshot.
-
ConvexQuerySnapshot<
T> - Immutable snapshot describing the state of a reactive query.
-
ConvexRequestSnapshot<
T> - Immutable snapshot describing the state of a one-shot request.
- ConvexRuntimeClient
- Runtime interface consumed by Flutter widgets in this package.
- ConvexRuntimePaginatedQuery
- Handle for a live, reactive paginated query consumed by Flutter widgets.
- ConvexRuntimeQueryError
- Runtime event containing a query error.
- ConvexRuntimeQueryEvent
- Base class for events emitted by a ConvexRuntimeSubscription.
- ConvexRuntimeQueryLoading
- Runtime event indicating a query is currently loading.
- ConvexRuntimeQuerySuccess
- Runtime event containing a successful query value.
- ConvexRuntimeSubscription
- Handle for a runtime query subscription.
- DartvexFlutterPlugin
-
Dart plugin entry point for
dartvex_flutter. -
FakeConvexAuthClient<
TUser> - A fake ConvexAuthClient for testing auth flows without a backend or an auth provider.
- FakeConvexCall
- A call recorded by FakeConvexClient.
- FakeConvexClient
- A fake implementation of ConvexRuntimeClient for testing Flutter apps without a real Convex backend.
- FakeConvexPaginatedQuery
- A fake paginated query returned by FakeConvexClient.paginatedQuery.
- FakeConvexSubscription
- A fake subscription returned by FakeConvexClient.subscribe.
- OptimisticLocalStore
- A view of the query results currently in the client, for use within an OptimisticUpdate.
- OptimisticQueryEntry
- One query returned by OptimisticLocalStore.getAllQueries: its args and current value, plus whether the query is currently loading.
-
PaginatedQueryBuilder<
T> - Widget that manages cursor-based pagination with Convex.
Enums
- ConvexPaginationStatus
- Status of a reactive paginated query.
- ConvexQuerySource
- Indicates where a query result originated.
- PaginationStatus
- Status of a paginated query.
Extensions
- ConvexRuntimeFunctionCaller on ConvexRuntimeClient
-
Typed-API access for code below a
ConvexProvider. - ConvexRuntimeWatch on ConvexRuntimeClient
- Decoded Stream view of a live query, for code outside widgets (controllers, repositories, services).
Properties
- defaultHttpClientFactory ↔ Client Function()?
-
Process-wide override for the default HTTP client factory.
getter/setter pair
- defaultWebSocketAdapterOverride ↔ WebSocketAdapterFactory?
-
Process-wide override for the default WebSocket adapter factory.
getter/setter pair
Functions
-
installCupertinoTransport(
) → void - Web stand-in for the NSURLSession transport installer.
Typedefs
-
ConvexActionBuilder<
T> = Widget Function(BuildContext context, ConvexRequestExecutor< T> action, ConvexRequestSnapshot<T> snapshot) - Builder callback for ConvexAction.
- ConvexAuthRefreshingWidgetBuilder = Widget Function(BuildContext context, bool isRefreshing)
- Builder callback for ConvexAuthRefreshingBuilder.
-
ConvexAuthWidgetBuilder<
TUser> = Widget Function(BuildContext context, AuthState< TUser> state) - Builder callback for ConvexAuthBuilder.
- ConvexConnectionIndicatorBuilder = Widget Function(BuildContext context)
- Builder used by ConvexConnectionIndicator for a specific connection state.
- ConvexConnectionState = ConnectionState
- Alias for the connection states emitted by the underlying Dartvex client.
- ConvexConnectionStatusWidgetBuilder = Widget Function(BuildContext context, ConnectionStatus status)
- Builder callback for ConvexConnectionStatusBuilder.
- ConvexConnectionWidgetBuilder = Widget Function(BuildContext context, ConvexConnectionState state)
- Builder callback for ConvexConnectionBuilder.
-
ConvexDecoder<
T> = T Function(dynamic value) - Decodes a raw Convex value into an application type.
- ConvexDownloadProgressCallback = void Function(ConvexDownloadProgress progress)
- Callback that reports download progress.
- ConvexImageErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
- Builder for an image that failed to load: receives the error and a callback that retries the load.
-
ConvexMutationBuilder<
T> = Widget Function(BuildContext context, ConvexRequestExecutor< T> mutate, ConvexRequestSnapshot<T> snapshot) - Builder callback for ConvexMutation.
-
ConvexQueryWidgetBuilder<
T> = Widget Function(BuildContext context, ConvexQuerySnapshot< T> snapshot) - Builder callback for ConvexQuery.
-
ConvexRequestExecutor<
T> = Future< T> Function([Map<String, dynamic> args]) - Executes a request-like Convex operation with optional arguments.
- OptimisticUpdate = void Function(OptimisticLocalStore store)
- A temporary, local edit to query results applied while a mutation is in flight.
-
PaginatedQueryErrorWidgetBuilder<
T> = Widget Function(BuildContext context, Object error, List< T> items, VoidCallback retry) - Builder used by PaginatedQueryBuilder.errorBuilder when the query fails.
-
PaginatedQueryWidgetBuilder<
T> = Widget Function(BuildContext context, List< T> items, VoidCallback loadMore, PaginationStatus status) - Builder callback for PaginatedQueryBuilder.
Exceptions / Errors
- ConvexDecodeException
- A Convex call succeeded but its result could not be decoded.
- ConvexStorageException
- Exception thrown when a Convex storage URL cannot be resolved.