TogeButtonWidget constructor
const
TogeButtonWidget(
- String text, {
- Key? key,
- Size minimumSize = const Size(40, 40),
- Size maximumSize = const Size(double.infinity, 48),
- TogeButtonType type = TogeButtonType.primary,
- TogeButtonSize size = TogeButtonSize.large,
- TogeButtonTone tone = TogeButtonTone.neutral,
- bool isIconButton = false,
- bool rounded = false,
- bool isHold = false,
- bool isLoading = false,
- double? loadingIndicatorSize,
- FocusNode? focusNode,
- dynamic onPressed()?,
- WidgetStatesController? statesController,
- EdgeInsets? contentPadding,
- Widget? contentBuilder,
- IconData? prefixIcon,
- double? prefixIconSpacing,
- double? prefixIconSize,
- Widget? prefixIconBuilder,
- IconData? suffixIcon,
- double? suffixIconSpacing,
- double? suffixIconSize,
- 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,
});