PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. bool isLoading = false,
  3. Icon? icon,
  4. required String text,
  5. required VoidCallback? onPressedCallback,
  6. double width = double.infinity,
  7. double height = 50,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(10),
  9. double radius = 25,
})

Implementation

const PrimaryButton({
  super.key,
  this.isLoading = false,
  this.icon,
  required this.text,
  required this.onPressedCallback,
  this.width = double.infinity,
  this.height = 50,
  this.padding = const EdgeInsets.all(10),
  this.radius = 25
});