webflow_sdk library

WebFlow SDK - A reusable Flutter package for timed URL redirects

This SDK provides a simple way to:

  • Open a URL in a WebView
  • Wait for a specified duration
  • Redirect to a second URL
  • Automatically close after another delay
  • Check for rooted/jailbroken devices (security feature)

Classes

DeviceSecurityChecker
Abstract class for device security checking
DeviceSecurityCheckerImpl
Implementation of DeviceSecurityChecker using flutter_jailbreak_detection
DeviceSecurityResult
Represents the result of a device security check
SecurityCheckOptions
Configuration options for device security checks
UrlDomainConfig
Configuration for URL domain validation
UrlValidationResult
Result of URL validation
UrlValidator
URL validator for checking navigation requests
WebFlowConfig
Configuration class for WebFlow SDK
WebFlowController
Main controller class for the WebFlow SDK
WebFlowResult
Result class returned after a WebFlow session completes
WebFlowScreen
A screen widget that displays the WebFlow session
WebFlowTheme
Theme configuration for the WebFlow screen

Enums

WebFlowStatus
Result status for a WebFlow session

Properties

deviceSecurityChecker → DeviceSecurityCheckerImpl
Global instance for convenient access
final
webFlow → WebFlowController
Global instance for convenient access
final

Typedefs

OnInitialPageLoaded = void Function(String url)
Callback type for when the initial URL page finishes loading
OnNavigationBlocked = void Function(String blockedUrl, String reason)
Callback type for when navigation is blocked by URL validation
OnProgressUpdate = void Function(int step, int totalSteps, Duration elapsed)
Callback type for progress updates
OnRedirect = void Function(String blockedUrl, String reason)
Callback type for when redirect occurs
OnSessionClosing = void Function(Duration sessionDuration)
Callback type for when the session is about to close