LdButton constructor

const LdButton({
  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 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);