AppButton constructor
const
AppButton({
- Key? key,
- String? title,
- VoidCallback? onTap,
- 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),
});