flutterx_starter_kit library

Classes

ApiClient
A minimal, testable HTTP client for calling REST APIs.
ApiConfig
Immutable configuration for the `ApiClient`.
ApiRequestOptions
Per-request overrides for an HTTP call.
ApiResponse<T>
A normalized HTTP response returned by the client.
ButtonKit
A single-color elevated button widget with configurable size, radius,
ButtonKitGradient
A gradient button widget that renders a gradient background and places an ElevatedButton on top with transparent background so splash and semantics are preserved.
SnackbarColors
Pre-defined color schemes for different snackbar types.
SnackbarKit
A utility class for displaying customizable snackbar notifications.
SnackbarKitConfig
Global configuration for SnackbarKit widgets.
TextKit
A customizable text widget with pre-configured typography styles.
TextKitConfig
Global configuration for TextKit widgets.

Enums

SnackbarPosition
Position of the snackbar on screen.

Typedefs

DefaultHeadersBuilder = Future<Map<String, String>> Function()
Builds default headers for each request.
OnUnauthorized = Future<void> Function(int statusCode, String body)
Called when the client remains unauthorized after a refresh attempt.
RefreshToken = Future<String?> Function(String? oldToken)
Refreshes and returns a new access token when given the previous one.
TokenProvider = Future<String?> Function()
Common function type aliases used by the API client.

Exceptions / Errors

ApiException
A normalized API error thrown for non-2xx HTTP responses
NetworkException
A transport-level error (connectivity, DNS, TLS, timeout, etc.).