InkwellButton constructor
InkwellButton({
- required String text,
- required void onPressed(),
- Color color1 = CharmColors.charple,
- Color color2 = CharmColors.hazy,
- Style textStyle = const Style(foreground: Colors.white, modifiers: Modifier.bold),
- int? width,
- int? height,
- FocusNode? focusNode,
- bool autofocus = false,
- Color? highlightBackground,
- Color? highlightForeground,
- void onFocusChange()?,
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,
});