GeneralButton constructor
const
GeneralButton({
- Key? key,
- double height = 40,
- double? fontSize = 13,
- double? iconSize = 18,
- double radius = 5,
- double? width,
- EdgeInsetsGeometry? padding,
- Callback? onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- Color? textColor,
- FocusNode? focusNode,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- bool autofocus = false,
- bool iconInRight = false,
- bool disabled = false,
- WidgetStatesController? statesController,
- bool showLoading = true,
- Widget? child,
- IconData? icon,
- required String label,
- bool fade = false,
- bool flat = false,
- bool reverse = false,
- Color? color,
- FontWeight? fontWeight,
Implementation
const GeneralButton(
{super.key,
this.height = 40,
this.fontSize = 13,
this.iconSize = 18,
this.radius = 5,
this.width,
this.padding,
this.onPressed,
this.onLongPress,
this.onHover,
this.onFocusChange,
this.style,
this.textColor,
this.focusNode,
this.borderRadius,
this.borderSide,
this.autofocus = false,
this.iconInRight = false,
this.disabled = false,
this.statesController,
this.showLoading = true,
this.child,
this.icon,
required this.label,
// this.loading = false,
this.fade = false,
this.flat = false,
this.reverse = false,
this.color,
this.fontWeight});