remote_app_blocker
library
Classes
-
BlockedPageStyle
-
Style configuration for the default blocked page.
-
BlockStatusProvider
-
Abstract provider for loading config from any source.
-
DefaultBlockedPage
-
Default blocked page UI. You can override using
blockedBuilder.
-
FirestoreBlockStatusProvider
-
Firestore provider.
Document data should match RemoteBlockConfig JSON schema.
-
HttpBlockStatusProvider
-
HTTP JSON provider.
Endpoint should return JSON with fields like:
{
"isBlocked": true,
"blockMessage": "...",
"blockedVersions":
"1.0.0",
"blockFrom": "2025-01-01T00:00:00Z",
"blockUntil": "2025-01-31T23:59:59Z",
"signature": "..." // optional HMAC
}
-
RemoteAppGate
-
Top-level gate widget.
Wrap this around your entire app in
runApp(RemoteAppGate(...)).
-
RemoteBlockConfig
-
Configuration model that can come from HTTP, Firestore, or Remote Config.
-
RemoteConfigBlockStatusProvider
-
Firebase Remote Config provider.
The given key should be a JSON string following RemoteBlockConfig schema.