Installation
Add topubspec.yaml:
Quick start
Wrap the authenticated portion of your app inSteadpayGate:
- Active —
YourApprenders normally - Warning — dismissable banner above content
- Lockout — full-screen overlay until card is updated
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
apiBase | String | ✓ | — |
tenantSlug | String | ✓ | — |
customerId | String | ✓ | — |
publishableKey | String | ✓ | — |
pollInterval | Duration | Duration(minutes: 10) | |
forcedStatus | SteadpayStatus? | null | |
callbacks | SteadpayCallbacks? | null | |
lockoutScreen | LockoutScreenBuilder? | built-in | |
warningBanner | WarningBannerBuilder? | built-in | |
child | Widget | ✓ | — |
Callbacks
Custom enforcement UI
Testing
Force a state
forcedStatus is set. Remove before shipping.
Interactive sandbox
DEV badge appears in the bottom-right corner. Tap to open a control sheet with state pills and a callback log. Remove before shipping to production.
Direct controller usage
For custom state management with Riverpod, Bloc, or other state managers:controller.dispose() when done.