UpLoadingButton constructor

const UpLoadingButton({
  1. Key? key,
  2. required String text,
  3. bool isLoading = false,
  4. bool isSuccess = false,
  5. bool isError = false,
  6. required Function onPress,
  7. UpColorType? colorType,
  8. bool? isButtonDisable = false,
  9. bool isRounded = false,
  10. double roundedBorderRadius = 18,
  11. Color borderColor = Colors.transparent,
  12. double borderWidth = 1,
})

Implementation

const UpLoadingButton({
  Key? key,
  required this.text,
  this.isLoading = false,
  this.isSuccess = false,
  this.isError = false,
  required this.onPress,
  this.colorType,
  this.isButtonDisable = false,
  this.isRounded = false,
  this.roundedBorderRadius = 18,
  this.borderColor = Colors.transparent,
  this.borderWidth = 1,
}) : super(key: key);