ButtonTheme constructor
const
ButtonTheme({
- Color color = const Color.fromRGBO(45, 50, 59, 1.0),
- Radius borderRadius = const Radius.circular(3.0),
- List<
BoxShadow> shadow = const [BoxShadow(blurRadius: 2.0, color: Color.fromRGBO(0, 0, 0, 0.2), offset: Offset(0.0, 1.0))], - Color buttonPressedTint = const Color.fromRGBO(0, 0, 0, 0.1),
- Color buttonHoveredTint = const Color.fromRGBO(255, 255, 255, 0.05),
- Offset buttonPressedOffset = const Offset(0.0, 0.5),
- Color separatorColor = const Color.fromRGBO(0, 0, 0, 0.2),
- double separatorWidth = 1.2,
- IconThemeData disabledButtonIconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.25), size: 18.5),
- IconThemeData pressedButtonIconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.5), size: 18.5),
- IconThemeData iconTheme = const IconThemeData(color: Color.fromRGBO(255, 255, 255, 0.9), size: 18.5),
- TextStyle disabledButtonTextStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.25)),
- TextStyle pressedButtonTextStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.5)),
- TextStyle textStyle = const TextStyle(color: Color.fromRGBO(255, 255, 255, 0.9)),
- 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,
),
});