LivenessTheme class

Theme configuration for the Face Liveness Detection package

Constructors

LivenessTheme.new({Color appBarBackgroundColor = Colors.black38, Color appBarTextColor = Colors.white, Color backgroundColor = Colors.black, Color primaryColor = const Color(0xFF8A8DDF), Color successColor = Colors.green, Color errorColor = Colors.red, Color warningColor = Colors.orange, Color ovalGuideColor = const Color(0xFF8A8DDF), Color overlayColor = Colors.black, double overlayOpacity = 0.8, TextStyle instructionTextStyle = const TextStyle(color: Colors.white, fontSize: 16), TextStyle statusTextStyle = const TextStyle(color: Colors.white, fontSize: 16), TextStyle guidanceTextStyle = const TextStyle(color: Color(0xFF2E38B7), fontSize: 18, fontWeight: FontWeight.w500), TextStyle successTitleStyle = const TextStyle(color: Colors.white, fontSize: 22, fontWeight: FontWeight.bold), TextStyle sessionIdStyle = const TextStyle(color: Colors.white70, fontSize: 14), ButtonStyle? resetButtonStyle, Color progressIndicatorColor = Colors.blue, Color progressIndicatorBackgroundColor = Colors.grey, double progressIndicatorHeight = 10, bool useOvalPulseAnimation = false})
const
LivenessTheme.fromMaterialColor(Color primaryColor, {Brightness brightness = Brightness.dark})
Create a theme based on Material color scheme
factory

Properties

appBarBackgroundColor Color
App bar background color
final
appBarTextColor Color
App bar text color
final
backgroundColor Color
Background color of the screen
final
errorColor Color
Color for error indicators
final
guidanceTextStyle TextStyle
Text style for the face center guidance
final
hashCode int
The hash code for this object.
no setterinherited
instructionTextStyle TextStyle
Text style for instructions
final
ovalGuideColor Color
Color for the oval face guide
final
overlayColor Color
Color for the overlay around the oval guide
final
overlayOpacity double
Opacity of the overlay (0.0-1.0)
final
primaryColor Color
Primary color for accents and highlights
final
progressIndicatorBackgroundColor Color
Custom progress indicator background color
final
progressIndicatorColor Color
Custom progress indicator color
final
progressIndicatorHeight double
Custom progress indicator height
final
resetButtonStyle ButtonStyle?
Button style for the reset button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionIdStyle TextStyle
Text style for the session ID on success screen
final
statusTextStyle TextStyle
Text style for status messages
final
successColor Color
Color for success indicators
final
successTitleStyle TextStyle
Text style for the success screen title
final
useOvalPulseAnimation bool
Whether to use pulse animation on the oval guide
final
warningColor Color
Color for warning indicators
final

Methods

copyWith({Color? appBarBackgroundColor, Color? appBarTextColor, Color? backgroundColor, Color? primaryColor, Color? successColor, Color? errorColor, Color? warningColor, Color? ovalGuideColor, Color? overlayColor, double? overlayOpacity, TextStyle? instructionTextStyle, TextStyle? statusTextStyle, TextStyle? guidanceTextStyle, TextStyle? successTitleStyle, TextStyle? sessionIdStyle, ButtonStyle? resetButtonStyle, Color? progressIndicatorColor, Color? progressIndicatorBackgroundColor, double? progressIndicatorHeight, bool? useOvalPulseAnimation}) LivenessTheme
Create a copy of this theme with some values replaced
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