HubbleButton.largeExpandedText constructor

HubbleButton.largeExpandedText(
  1. String text, {
  2. Key? key,
  3. required VoidCallback onPressed,
  4. HubbleButtonState state = HubbleButtonState.enabled,
  5. double? height,
  6. bool isGhost = false,
  7. bool isOutlined = false,
  8. ButtonTapEvent? tapEvent,
  9. Color? background,
  10. Color? foreground,
})

Implementation

HubbleButton.largeExpandedText(
  String text, {
  super.key,
  required this.onPressed,
  this.state = HubbleButtonState.enabled,
  this.height,
  this.isGhost = false,
  this.isOutlined = false,
  this.tapEvent,
  this.background,
  this.foreground,
})  : size = HubbleButtonSize.large,
      width = double.infinity,
      child = HubbleText(text);