EnrollTheme class

Unified theme configuration for the eNROLL SDK.

Platform support:

  • colors: Android and iOS.
  • icons: Android only (iOS support planned).
  • typography: Android and iOS.

For cross-platform color-only customization you may continue to use the appColors parameter on EnrollPlugin directly.

Groups color and icon customization under a single concept, aligned with the Android SDK's AppTheme structure.

If both EnrollPlugin.enrollTheme and EnrollPlugin.appColors are provided, enrollTheme takes priority and appColors is ignored.

Example:

EnrollTheme(
  colors: EnrollColors(
    primary: Color(0xFF1D56B8),
    secondary: Color(0xFF5791DB),
  ),
  icons: EnrollIcons(
    logo: EnrollLogoConfig(
      mode: EnrollLogoMode.custom,
      assetName: 'my_logo',
      showSponsoredBy: false,
    ),
    location: EnrollLocationIcons(
      tutorial: EnrollStepIcon(assetName: 'my_location'),
    ),
  ),
)

Constructors

EnrollTheme({EnrollColors? colors, EnrollIcons? icons, EnrollTypography? typography})
Creates an EnrollTheme with optional color, icon and typography customization.
const

Properties

colors → EnrollColors?
Color customization for the SDK UI.
final
hashCode → int
The hash code for this object.
no setterinherited
icons → EnrollIcons?
Icon customization for logo and step illustrations.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typography → EnrollTypography?
Typography customization (font family, sizes, dynamic type and JSON-file based localization overrides).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the theme to a JSON map for serialization to the native bridge.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited