ButtonStyle constructor

const ButtonStyle({
  1. Color foregroundColor = Color.white,
  2. Color backgroundColor = Color.blue,
  3. Color focusColor = Color.brightWhite,
  4. Color focusBackgroundColor = Color.brightBlue,
  5. Color disabledColor = Color.brightBlack,
  6. Color disabledBackgroundColor = Color.black,
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 2, vertical: 0),
  8. bool bold = false,
})

Implementation

const ButtonStyle({
  this.foregroundColor = Color.white,
  this.backgroundColor = Color.blue,
  this.focusColor = Color.brightWhite,
  this.focusBackgroundColor = Color.brightBlue,
  this.disabledColor = Color.brightBlack,
  this.disabledBackgroundColor = Color.black,
  this.padding = const EdgeInsets.symmetric(horizontal: 2, vertical: 0),
  this.bold = false,
});