ScannerUiTheme constructor

const ScannerUiTheme({
  1. Color overlayMaskColor = const Color(0xA6000000),
  2. Color? accentColor,
  3. Color? reticleCornerColor,
  4. Color? reticleBorderColor,
  5. Color? laserBeamColor,
  6. Color backgroundColor = const Color(0xFF090D12),
  7. Color modeSelectorBackgroundColor = const Color(0xFF0B0E14),
  8. Color? modeTabSelectedColor,
  9. Color modeTabUnselectedColor = const Color(0x0DFFFFFF),
  10. Color modeTabSelectedTextColor = Colors.black,
  11. Color modeTabUnselectedTextColor = Colors.white70,
  12. Color guideBoxBackgroundColor = const Color(0xBF000000),
  13. Color guideTextColor = Colors.white,
  14. Color badgeBackgroundColor = const Color(0xA6000000),
  15. Color? badgeTextColor,
  16. bool showModeBadge = true,
  17. bool showGuideBox = true,
  18. bool showLaserBeam = true,
  19. double reticleCornerLength = 28.0,
  20. double reticleCornerWidth = 4.5,
  21. double reticleBorderWidth = 2.5,
  22. 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,
});