LdButton constructor
const
LdButton({
- required Widget child,
- required Function onPressed,
- bool autoLoading = true,
- BorderRadius? borderRadius,
- LdColor? color,
- bool? active,
- double? width,
- bool disabled = false,
- FocusNode? focusNode,
- bool autoFocus = false,
- MainAxisAlignment? alignment,
- Widget? leading,
- bool? circular,
- bool loading = false,
- String? loadingText,
- String? errorText,
- LdButtonMode mode = LdButtonMode.filled,
- double? progress,
- LdSize size = LdSize.m,
- Widget? trailing,
- Key? key,
Implementation
const LdButton({
required this.child,
required this.onPressed,
this.autoLoading = true,
this.borderRadius,
this.color,
this.active,
this.width,
this.disabled = false,
this.focusNode,
this.autoFocus = false,
this.alignment,
this.leading,
this.circular,
this.loading = false,
this.loadingText,
this.errorText,
this.mode = LdButtonMode.filled,
this.progress,
this.size = LdSize.m,
this.trailing,
Key? key,
}) : super(key: key);