EnrollTheme class
Unified theme configuration for the eNROLL SDK.
Under Development — Android only.
EnrollThemeis currently supported on Android only. iOS support is planned for a future release. For cross-platform color customization, use theappColorsparameter on EnrollPlugin directly instead.
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',
),
location: EnrollLocationIcons(
tutorial: EnrollStepIcon(assetName: 'my_location'),
),
),
)
Constructors
- EnrollTheme({EnrollColors? colors, EnrollIcons? icons})
-
Creates an EnrollTheme with optional color and icon 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
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