Skip to main content

Flutter Configuration

Configure the SDK via AzeooSDKInitOptions when you call AzeooSDK.initialize. User ID and token are passed later in AzeooSDK.connect(userId, token).

Options (AzeooSDKInitOptions)

await AzeooSDK.initialize(apiKey, options: AzeooSDKInitOptions(
locale: 'en',
analyticsEnabled: true,
offlineSupport: true,
theme: themeConfig, // optional ThemeConfig
deepLinks: deepLinkConfig, // optional DeepLinkConfig
safeArea: SafeAreaConfig.all(), // optional
));

Theme (ThemeConfig)

Pass theme in options to customize colors and light/dark themes (e.g. success, error, warning, customLightTheme, customDarkTheme). See Theming Concepts.

Safe area (SafeAreaConfig)

Pass safeArea in options (e.g. SafeAreaConfig.all() or custom top/bottom/left/right).

Pass deepLinks in options with scheme, host, and optional pathPrefix for deep link handling.

Runtime theme changes

After connect, use:

  • AzeooSDK.changePrimaryColor(color)
  • AzeooSDK.setCustomThemes(...)
  • AzeooSDK.getCurrentThemeMode()

Next steps