AppButton constructor

const AppButton({
  1. Key? key,
  2. String? title,
  3. VoidCallback? onTap,
  4. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
})

Creates an AppButton.

title - The text to display on the button. If null, an empty string is shown. onTap - The callback function to be called when the button is tapped. padding - The padding inside the button. Defaults to horizontal 8 and vertical 4.

Implementation

const AppButton({
  super.key,
  this.title,
  this.onTap,
  this.padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
});