BiometricTheme class

Visual customization model for all SDK-owned UI surfaces.

Pass this via BiometricConfig.theme to brand the biometric prompt, lockout screen, and fallback bottom sheet.

Constructors

BiometricTheme({Color? primaryColor, Color? backgroundColor, Color? errorColor, TextStyle? titleStyle, TextStyle? subtitleStyle, TextStyle? buttonStyle, BorderRadius? sheetBorderRadius, Widget? biometricIcon, Widget? lockoutIcon, double? sheetMaxHeight})
const

Properties

backgroundColor Color?
Background color for SDK-owned surfaces.
final
biometricIcon Widget?
Custom icon to replace the default fingerprint/face icon.
final
buttonStyle TextStyle?
Text style for button labels.
final
errorColor Color?
Color used for error states and warning text.
final
hashCode int
The hash code for this object.
no setterinherited
lockoutIcon Widget?
Custom icon shown on the lockout screen.
final
primaryColor Color?
Primary accent color used for buttons and interactive elements.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheetBorderRadius BorderRadius?
Border radius for the bottom sheet.
final
sheetMaxHeight double?
Maximum height of the bottom sheet as a fraction of screen height (e.g. 0.4 for 40%).
final
subtitleStyle TextStyle?
Text style for subtitles and descriptions.
final
titleStyle TextStyle?
Text style for titles (e.g. "Verify your identity").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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