InkwellButton constructor

InkwellButton({
  1. required String text,
  2. required void onPressed(),
  3. Color color1 = CharmColors.charple,
  4. Color color2 = CharmColors.hazy,
  5. Style textStyle = const Style(foreground: Colors.white, modifiers: Modifier.bold),
  6. int? width,
  7. int? height,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
  10. Color? highlightBackground,
  11. Color? highlightForeground,
  12. void onFocusChange(
    1. bool
    )?,
})

Creates a new InkwellButton.

Implementation

InkwellButton({
  required this.text,
  required this.onPressed,
  this.color1 = CharmColors.charple,
  this.color2 = CharmColors.hazy,
  this.textStyle = const Style(
    foreground: Colors.white,
    modifiers: Modifier.bold,
  ),
  this.width,
  this.height,
  this.focusNode,
  this.autofocus = false,
  this.highlightBackground,
  this.highlightForeground,
  this.onFocusChange,
});