StreamColorTheme.dark constructor

StreamColorTheme.dark({
  1. Color textHighEmphasis = const Color(0xffffffff),
  2. Color textLowEmphasis = const Color(0xff7a7a7a),
  3. Color disabled = const Color(0xff2d2f2f),
  4. Color borders = const Color(0xff1c1e22),
  5. Color inputBg = const Color(0xff13151b),
  6. Color appBg = const Color(0xff000000),
  7. Color barsBg = const Color(0xff121416),
  8. Color linkBg = const Color(0xff00193D),
  9. Color accentPrimary = const Color(0xff337eff),
  10. Color accentError = const Color(0xffFF3742),
  11. Color accentInfo = const Color(0xff20E070),
  12. Effect borderTop = const Effect(sigmaX: 0, sigmaY: -1, color: Color(0xff141924), blur: 0),
  13. Effect borderBottom = const Effect(sigmaX: 0, sigmaY: 1, color: Color(0xff141924), blur: 0, alpha: 1),
  14. Effect shadowIconButton = const Effect(sigmaX: 0, sigmaY: 2, color: Color(0xff000000), alpha: 0.5, blur: 4),
  15. Effect modalShadow = const Effect(sigmaX: 0, sigmaY: 0, color: Color(0xff000000), alpha: 1, blur: 8),
  16. Color highlight = const Color(0xff302d22),
  17. Color overlay = const Color.fromRGBO(0, 0, 0, 0.4),
  18. Color overlayDark = const Color.fromRGBO(255, 255, 255, 0.6),
  19. Gradient bgGradient = const LinearGradient(begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Color(0xff101214), Color(0xff070a0d)], stops: [0, 1]),
})

Initialise with dark theme

Implementation

StreamColorTheme.dark({
  this.textHighEmphasis = const Color(0xffffffff),
  this.textLowEmphasis = const Color(0xff7a7a7a),
  this.disabled = const Color(0xff2d2f2f),
  this.borders = const Color(0xff1c1e22),
  this.inputBg = const Color(0xff13151b),
  this.appBg = const Color(0xff000000),
  this.barsBg = const Color(0xff121416),
  this.linkBg = const Color(0xff00193D),
  this.accentPrimary = const Color(0xff337eff),
  this.accentError = const Color(0xffFF3742),
  this.accentInfo = const Color(0xff20E070),
  this.borderTop = const Effect(
    sigmaX: 0,
    sigmaY: -1,
    color: Color(0xff141924),
    blur: 0,
  ),
  this.borderBottom = const Effect(
    sigmaX: 0,
    sigmaY: 1,
    color: Color(0xff141924),
    blur: 0,
    alpha: 1,
  ),
  this.shadowIconButton = const Effect(
    sigmaX: 0,
    sigmaY: 2,
    color: Color(0xff000000),
    alpha: 0.5,
    blur: 4,
  ),
  this.modalShadow = const Effect(
    sigmaX: 0,
    sigmaY: 0,
    color: Color(0xff000000),
    alpha: 1,
    blur: 8,
  ),
  this.highlight = const Color(0xff302d22),
  this.overlay = const Color.fromRGBO(0, 0, 0, 0.4),
  this.overlayDark = const Color.fromRGBO(255, 255, 255, 0.6),
  this.bgGradient = const LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [
      Color(0xff101214),
      Color(0xff070a0d),
    ],
    stops: [0, 1],
  ),
}) : brightness = Brightness.dark;