LivenessCheckTheme class
Theme configuration for visual customization of the liveness check screen.
Constructors
- LivenessCheckTheme({Color backgroundColor = Colors.white, Color? btnRetryBGColor = Colors.blue, Color? btnTextRetryColor = Colors.white, double? btnRetryHeight, EdgeInsets? btnRetryPadding, double? btnRetryBorderRadius, Color primaryColor = Colors.blue, Color successColor = Colors.green, Color errorColor = Colors.red, Color warningColor = Colors.orange, Color borderColor = Colors.blue, Color textColor = Colors.black, Color? overlayColor = Colors.white, double circleSize = 0.65, double borderWidth = 4, CircleBorderStyle borderStyle = CircleBorderStyle.solid, double dashLength = 8.0, double dashGap = 8.0, double cameraPadding = 0.0, String? successAsset, String? failAsset, String? fontFamily, TextStyle? titleTextStyle, TextStyle? messageTextStyle, TextStyle? errorTextStyle, TextStyle? successTextStyle})
-
Creates a liveness check theme.
const
Properties
- backgroundColor → Color
-
Background color of the screen.
final
- borderColor → Color
-
Color of the circular border.
final
- borderStyle → CircleBorderStyle
-
Style of the circular border (solid or dashed).
final
- borderWidth → double
-
Width of the circular border.
final
- btnRetryBGColor → Color?
-
Background color of the retry button.
final
- btnRetryBorderRadius → double?
-
Try again button border radius.
final
- btnRetryHeight → double?
-
Try again button height.
final
- btnRetryPadding → EdgeInsets?
-
Try again button padding.
final
- btnTextRetryColor → Color?
-
Text color of the retry button.
final
- cameraPadding → double
-
Padding between border and camera preview.
final
- circleSize → double
-
Size of the circular preview (0.0 to 1.0 of screen width).
final
- dashGap → double
-
Gap between dash segments (when using dashed border).
final
- dashLength → double
-
Length of each dash segment (when using dashed border).
final
- errorColor → Color
-
Color for error indicators.
final
- errorTextStyle → TextStyle?
-
Text style for error messages.
final
- failAsset → String?
-
Asset path for failure indicator image.
final
- fontFamily → String?
-
Font family for all text elements.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageTextStyle → TextStyle?
-
Text style for messages.
final
- overlayColor → Color?
-
Overlay color covering the camera preview.
final
- primaryColor → Color
-
Primary color for UI elements.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successAsset → String?
-
Asset path for success indicator image.
final
- successColor → Color
-
Color for success indicators.
final
- successTextStyle → TextStyle?
-
Text style for success messages.
final
- textColor → Color
-
Default text color.
final
- titleTextStyle → TextStyle?
-
Text style for title.
final
- warningColor → Color
-
Color for warning indicators.
final
Methods
-
copyWith(
{Color? backgroundColor, Color? primaryColor, Color? btnRetryBGColor, Color? btnTextRetryColor, double? btnRetryHeight, EdgeInsets? btnRetryPadding, double? btnRetryBorderRadius, Color? successColor, Color? errorColor, Color? warningColor, Color? borderColor, Color? textColor, Color? overlayColor, double? circleSize, double? borderWidth, CircleBorderStyle? borderStyle, double? dashLength, double? dashGap, double? cameraPadding, String? successAsset, String? failAsset, String? fontFamily, TextStyle? titleTextStyle, TextStyle? messageTextStyle, TextStyle? errorTextStyle, TextStyle? successTextStyle}) → LivenessCheckTheme - Creates a copy of this theme with the given fields 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