ScannerUiTheme class

Customizable theme and visual design configuration for Universal Scanner Pro.

Constructors

ScannerUiTheme({Color overlayMaskColor = const Color(0xA6000000), Color? accentColor, Color? reticleCornerColor, Color? reticleBorderColor, Color? laserBeamColor, Color backgroundColor = const Color(0xFF090D12), Color modeSelectorBackgroundColor = const Color(0xFF0B0E14), Color? modeTabSelectedColor, Color modeTabUnselectedColor = const Color(0x0DFFFFFF), Color modeTabSelectedTextColor = Colors.black, Color modeTabUnselectedTextColor = Colors.white70, Color guideBoxBackgroundColor = const Color(0xBF000000), Color guideTextColor = Colors.white, Color badgeBackgroundColor = const Color(0xA6000000), Color? badgeTextColor, bool showModeBadge = true, bool showGuideBox = true, bool showLaserBeam = true, double reticleCornerLength = 28.0, double reticleCornerWidth = 4.5, double reticleBorderWidth = 2.5, double reticleCornerRadius = 16.0})
Constructs a new ScannerUiTheme.
const

Properties

accentColor → Color?
Primary accent color for viewfinder reticle, selected mode, and highlight lines.
final
backgroundColor → Color
Scanner viewport container background color.
final
badgeBackgroundColor → Color
Background color of top active mode badge chip.
final
badgeTextColor → Color?
Text color of active mode badge chip.
final
guideBoxBackgroundColor → Color
Background color of top floating guide box.
final
guideTextColor → Color
Text color inside floating guidance box.
final
hashCode → int
The hash code for this object.
no setterinherited
laserBeamColor → Color?
Color of animated scanning laser beam.
final
modeSelectorBackgroundColor → Color
Mode selection bottom bar background color.
final
modeTabSelectedColor → Color?
Background color of selected mode pill tab.
final
modeTabSelectedTextColor → Color
Text color of selected mode pill tab.
final
modeTabUnselectedColor → Color
Background color of unselected mode pill tab.
final
modeTabUnselectedTextColor → Color
Text color of unselected mode pill tab.
final
overlayMaskColor → Color
Background dimming color outside the camera viewfinder cutout.
final
reticleBorderColor → Color?
Stroke color for reticle cutout outline.
final
reticleBorderWidth → double
Thickness of reticle outline border.
final
reticleCornerColor → Color?
Color of reticle corner brackets.
final
reticleCornerLength → double
Length of reticle corner brackets.
final
reticleCornerRadius → double
Border corner radius for rectangular cutouts.
final
reticleCornerWidth → double
Thickness of corner brackets.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showGuideBox → bool
Whether to display top floating guidance text box.
final
showLaserBeam → bool
Whether to display animated scanning laser beam.
final
showModeBadge → bool
Whether to display top active mode badge chip.
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

Constants

amber → const ScannerUiTheme
Neon amber theme preset.
cyan → const ScannerUiTheme
Vibrant cyan theme preset.
dark → const ScannerUiTheme
Default dark theme preset for Scanner Pro.
emerald → const ScannerUiTheme
Emerald green theme preset.