crossmint_flutter_ui.dart.
CrossmintEmbeddedCheckout
WebView-based checkout widget that renders the Crossmint embedded checkout experience inline. Communicates bidirectionally with the hosted checkout page for dynamic sizing, order updates, and crypto transaction signing.Props
String
required
Crossmint API key.
CrossmintCheckoutConfig
required
Checkout configuration (order, payment, appearance).
CrossmintCheckoutPayer?
Optional crypto payer override for signing transactions within checkout.
CrossmintCheckoutController?
Optional reactive controller for checkout order state.
void Function(Map<String, Object?> order)?
Called when the order state changes.
void Function(String errorMessage)?
Called when order creation fails.
void Function(CrossmintCheckoutDiagnostic diagnostic)?
Called when the hosted checkout emits a runtime diagnostic.
CrossmintCheckoutLoadingBuilder?
Optional builder for the loading overlay rendered on top of the hosted checkout WebView while the page is loading. When
null, the widget falls back to a Material CircularProgressIndicator inside a themed background container (the React Native Crossmint SDK parity default).double
Initial height before the hosted page reports its actual height.
Usage
CrossmintCheckoutController
Reactive controller for checkout order state, matching the official Crossmint RN SDK’suseCrossmintCheckout() hook. Pass this to CrossmintEmbeddedCheckout to receive order updates as observable state.
Properties
Map<String, Object?>?
The current order object from the checkout, or
null if no order yet.String?
The server-assigned client secret for the current order.
Methods
void
Updates the order state from a checkout
order:updated event.void
Clears the order state.

