ScannerUiTheme constructor
const
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.
Implementation
const ScannerUiTheme({
this.overlayMaskColor = const Color(0xA6000000),
this.accentColor,
this.reticleCornerColor,
this.reticleBorderColor,
this.laserBeamColor,
this.backgroundColor = const Color(0xFF090D12),
this.modeSelectorBackgroundColor = const Color(0xFF0B0E14),
this.modeTabSelectedColor,
this.modeTabUnselectedColor = const Color(0x0DFFFFFF),
this.modeTabSelectedTextColor = Colors.black,
this.modeTabUnselectedTextColor = Colors.white70,
this.guideBoxBackgroundColor = const Color(0xBF000000),
this.guideTextColor = Colors.white,
this.badgeBackgroundColor = const Color(0xA6000000),
this.badgeTextColor,
this.showModeBadge = true,
this.showGuideBox = true,
this.showLaserBeam = true,
this.reticleCornerLength = 28.0,
this.reticleCornerWidth = 4.5,
this.reticleBorderWidth = 2.5,
this.reticleCornerRadius = 16.0,
});