AppButton constructor
const
AppButton({
- Key? key,
- required String buttonText,
- GestureTapCallback? onPressed,
- ButtonWidth buttonWidth = ButtonWidth.large,
- EdgeInsets padding = const EdgeInsets.all(10),
- Duration duration = const Duration(seconds: 5),
- Widget? leadingWidget,
- Color? textColor,
- Color? backgroundColor,
- OutlinedBorder outlinedBorder = const StadiumBorder(),
Implementation
const AppButton({
Key? key,
required this.buttonText,
this.onPressed,
this.buttonWidth = ButtonWidth.large,
this.padding = const EdgeInsets.all(10),
this.duration = const Duration(seconds: 5),
this.leadingWidget,
this.textColor,
this.backgroundColor,
this.outlinedBorder = const StadiumBorder(),
}) : super(key: key);