ButtonTheme constructor

const ButtonTheme({
  1. Color color = const Color.fromRGBO(45, 50, 59, 1.0),
  2. Radius borderRadius = const Radius.circular(3.0),
  3. List<BoxShadow> shadow = const [BoxShadow(blurRadius: 2.0, color: Color.fromRGBO(0, 0, 0, 0.2), offset: Offset(0.0, 1.0))],
  4. Color buttonPressedTint = const Color.fromRGBO(0, 0, 0, 0.1),
  5. Color buttonHoveredTint = const Color.fromRGBO(255, 255, 255, 0.05),
  6. Offset buttonPressedOffset = const Offset(0.0, 0.5),
  7. Color separatorColor = const Color.fromRGBO(0, 0, 0, 0.2),
  8. double separatorWidth = 1.2,
  9. IconThemeData disabledButtonIconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.25), size: 18.5),
  10. IconThemeData pressedButtonIconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.5), size: 18.5),
  11. IconThemeData iconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.9), size: 18.5),
  12. TextStyle disabledButtonTextStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.25)),
  13. TextStyle pressedButtonTextStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.5)),
  14. TextStyle textStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.9)),
  15. BoxBorder boxBorder = const GradientBoxBorder(gradient: LinearGradient(colors: [Color.fromRGBO(255, 255, 255, 0.1), Colors.transparent, Colors.transparent], begin: Alignment.topCenter, end: Alignment.bottomCenter), width: 1.0),
})

Implementation

const ButtonTheme({
  this.color = const Color.fromRGBO(45, 50, 59, 1.0),
  this.borderRadius = const Radius.circular(3.0),
  this.shadow = const [
    BoxShadow(
      blurRadius: 2.0,
      color: Color.fromRGBO(0, 0, 0, 0.2),
      offset: Offset(0.0, 1.0),
    ),
  ],
  this.buttonPressedTint = const Color.fromRGBO(0, 0, 0, 0.1),
  this.buttonHoveredTint = const Color.fromRGBO(255, 255, 255, 0.05),
  this.buttonPressedOffset = const Offset(0.0, 0.5),
  this.separatorColor = const Color.fromRGBO(0, 0, 0, 0.2),
  this.separatorWidth = 1.2,
  this.disabledButtonIconTheme = const IconThemeData(
    color: Color.fromRGBO(255, 255, 255, 0.25),
    size: 18.5,
  ),
  this.pressedButtonIconTheme = const IconThemeData(
    color: Color.fromRGBO(255, 255, 255, 0.5),
    size: 18.5,
  ),
  this.iconTheme = const IconThemeData(
    color: Color.fromRGBO(255, 255, 255, 0.9),
    size: 18.5,
  ),
  this.disabledButtonTextStyle = const TextStyle(
    color: Color.fromRGBO(255, 255, 255, 0.25),
  ),
  this.pressedButtonTextStyle = const TextStyle(
    color: Color.fromRGBO(255, 255, 255, 0.5),
  ),
  this.textStyle = const TextStyle(
    color: Color.fromRGBO(255, 255, 255, 0.9),
  ),
  this.boxBorder = const GradientBoxBorder(
    gradient: LinearGradient(
      colors: [
        Color.fromRGBO(255, 255, 255, 0.1),
        Colors.transparent,
        Colors.transparent,
      ],
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
    ),
    width: 1.0,
  ),
});