LdButtonSuccess constructor
LdButtonSuccess({
- required Widget child,
- required Function onPressed,
- bool autoLoading = true,
- BorderRadius? borderRadius,
- LdColorNames? color,
- bool? active,
- double? width,
- bool disabled = false,
- FocusNode? focusNode,
- 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,
- required BuildContext context,
Implementation
LdButtonSuccess({
required Widget child,
required Function onPressed,
bool autoLoading = true,
BorderRadius? borderRadius,
LdColorNames? color,
bool? active,
double? width,
bool disabled = false,
FocusNode? focusNode,
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,
required BuildContext context,
}) : super(
child: child,
onPressed: onPressed,
autoLoading: autoLoading,
borderRadius: borderRadius,
color: LdTheme.of(context).success,
active: active,
width: width,
disabled: disabled,
focusNode: focusNode,
alignment: alignment,
leading: leading,
circular: circular,
loading: loading,
loadingText: loadingText,
errorText: errorText,
mode: mode,
progress: progress,
size: size,
trailing: trailing,
key: key);