CustomButtonWidget constructor

const CustomButtonWidget({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required String text,
  4. double width = 100,
  5. bool enabled = true,
  6. double padding = AppSpacing.medium,
})

Creates a CustomButtonWidget.

Implementation

const CustomButtonWidget(
    {Key? key,
    required this.onPressed,
    required this.text,
    this.width = 100,
    this.enabled = true,
    this.padding = AppSpacing.medium})
    : super(key: key);