PrimaryButton.outlined constructor
const
PrimaryButton.outlined({
- required VoidCallback? onPressed,
- required String text,
- Key? key,
- TextStyle style = Styles.s14BlackW500,
- Size minimumSize = const Size.fromHeight(50),
- Color buttonColor = ColorName.blue,
- Color disabledColor = ColorName.grey,
- bool isEnabled = true,
- double borderSideWidth = 2,
- Widget? icon,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10)),
- EdgeInsetsGeometry margin = EdgeInsets.zero,
Implementation
const PrimaryButton.outlined({
required this.onPressed,
required this.text,
super.key,
this.style = Styles.s14BlackW500,
this.minimumSize = const Size.fromHeight(50),
this.buttonColor = ColorName.blue,
this.disabledColor = ColorName.grey,
this.isEnabled = true,
this.borderSideWidth = 2,
this.icon,
this.borderRadius = const BorderRadius.all(Radius.circular(10)),
this.margin = EdgeInsets.zero,
}) : _isOutlined = true;