EnrollTheme class

Unified theme configuration for the eNROLL Neo SDK.

Platform support:

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

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

If both EnrollNeoPlugin.enrollTheme and EnrollNeoPlugin.enrollColors are provided, enrollTheme takes priority and enrollColors 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