TogeButtonWidget constructor

const TogeButtonWidget(
  1. String text, {
  2. Key? key,
  3. Size minimumSize = const Size(40, 40),
  4. Size maximumSize = const Size(double.infinity, 48),
  5. TogeButtonType type = TogeButtonType.primary,
  6. TogeButtonSize size = TogeButtonSize.large,
  7. TogeButtonTone tone = TogeButtonTone.neutral,
  8. bool isIconButton = false,
  9. bool rounded = false,
  10. bool isHold = false,
  11. bool isLoading = false,
  12. double? loadingIndicatorSize,
  13. FocusNode? focusNode,
  14. dynamic onPressed()?,
  15. WidgetStatesController? statesController,
  16. EdgeInsets? contentPadding,
  17. Widget? contentBuilder,
  18. IconData? prefixIcon,
  19. double? prefixIconSpacing,
  20. double? prefixIconSize,
  21. Widget? prefixIconBuilder,
  22. IconData? suffixIcon,
  23. double? suffixIconSpacing,
  24. double? suffixIconSize,
  25. Widget? suffixIconBuilder,
})

Implementation

const TogeButtonWidget(
  this.text, {
  super.key,
  this.minimumSize = const Size(40, 40),
  this.maximumSize = const Size(double.infinity, 48),
  this.type = TogeButtonType.primary,
  this.size = TogeButtonSize.large,
  this.tone = TogeButtonTone.neutral,
  this.isIconButton = false,
  this.rounded = false,
  this.isHold = false,
  this.isLoading = false,
  this.loadingIndicatorSize,
  this.focusNode,
  this.onPressed,
  this.statesController,
  this.contentPadding,
  this.contentBuilder,
  this.prefixIcon,
  this.prefixIconSpacing,
  this.prefixIconSize,
  this.prefixIconBuilder,
  this.suffixIcon,
  this.suffixIconSpacing,
  this.suffixIconSize,
  this.suffixIconBuilder,
});