PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required String label,
  3. void onPressed()?,
  4. bool isLoading = false,
})

Implementation

const PrimaryButton({
  Key? key,
  required String label,
  void Function()? onPressed,
  bool isLoading = false,
}) : super(
        key: key,
        label: label,
        backgroundColor: charcoal,
        textColor: Colors.white,
        onPressed: onPressed,
        isLoading: isLoading,
        shadowOpacity: 0.5,
      );