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
Called when the hosted checkout emits a runtime diagnostic.
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).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
Verification credentials for the current order, or
null when the order does not need identity verification. Pass these to CrossmintIdentityVerification when checkout runs with identityVerificationHandling set to external.Methods
Usage
CrossmintIdentityVerification
WebView-based widget that renders Crossmint’s hosted identity verification step in your own route. Use it when checkout runs withidentityVerificationHandling: CrossmintIdentityVerificationHandling.external. Checkout then stops rendering verification itself, and the buyer cannot finish unless you mount this widget with the credentials from CrossmintCheckoutController.identityVerificationCredentials. Open it when the order first carries credentials, keep passing it the latest non-null credentials while it is open, close it on onComplete or onCancel, and keep it closed for that order after that. With session credentials the order leaves requires-kyc as soon as the buyer submits, before verification shows its result, so those credentials go back to null while the widget is still needed.
Props
Crossmint API key. Resolves staging versus production and is forwarded to the hosted page, matching the React Native SDK and the other Crossmint widgets in this package.
Optional locale tag. Must be one the hosted page recognises, for example
en-US, es-ES, pt-PT. An unrecognised tag is not ignored: the page rejects it and reports a non-retriable invalidConfiguration error, which leaves the buyer with a dead screen.Called with the outcome when verification finishes.
Called when verification cannot run or continue.
Optional builder for the loading overlay. Falls back to a themed Material spinner, matching
CrossmintPaymentMethodManagement.
