LdButtonSuccess constructor

LdButtonSuccess({
  1. required Widget child,
  2. required Function onPressed,
  3. bool autoLoading = true,
  4. BorderRadius? borderRadius,
  5. LdColorNames? color,
  6. bool? active,
  7. double? width,
  8. bool disabled = false,
  9. FocusNode? focusNode,
  10. MainAxisAlignment? alignment,
  11. Widget? leading,
  12. bool? circular,
  13. bool loading = false,
  14. String? loadingText,
  15. String? errorText,
  16. LdButtonMode mode = LdButtonMode.filled,
  17. double? progress,
  18. LdSize size = LdSize.m,
  19. Widget? trailing,
  20. Key? key,
  21. 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);