Skip to main content

Installation

Add to pubspec.yaml:

Quick start

Wrap the authenticated portion of your app in GatlioGate:
  • ActiveYourApp renders normally
  • Warning — dismissable banner above content
  • Lockout — full-screen overlay until card is updated

Parameters

Callbacks

Callbacks fire on status transitions only — not on every poll tick.

Custom enforcement UI

Testing

Force a state

No network calls are made when forcedStatus is set. Remove before shipping.

Interactive sandbox

A 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:
Call controller.dispose() when done.