BasicButton.primary constructor
const
BasicButton.primary({
- required Widget child,
- Key? key,
- VoidCallback? onPressed,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
- BasicBorder? border,
- Color? backgroundColor,
- Color? foregroundColor,
- bool? enableFeedback,
Implementation
const BasicButton.primary({
required this.child,
super.key,
this.onPressed,
this.borderRadius = const BorderRadius.all(Radius.circular(6)),
this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
this.border,
this.backgroundColor,
this.foregroundColor,
this.enableFeedback,
}) : type = BasicButtonType.primary;