LdButtonGhost constructor

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

Implementation

const LdButtonGhost({
  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,
}) : super(
          child: child,
          onPressed: onPressed,
          autoLoading: autoLoading,
          borderRadius: borderRadius,
          color: color,
          active: active,
          width: width,
          disabled: disabled,
          focusNode: focusNode,
          autoFocus: autoFocus,
          alignment: alignment,
          leading: leading,
          circular: circular,
          loading: loading,
          loadingText: loadingText,
          errorText: errorText,
          mode: LdButtonMode.ghost,
          progress: progress,
          size: size,
          trailing: trailing,
          key: key);