PrimaryButton.outlined constructor

const PrimaryButton.outlined({
  1. required VoidCallback? onPressed,
  2. required String text,
  3. Key? key,
  4. TextStyle style = Styles.s14BlackW500,
  5. Size minimumSize = const Size.fromHeight(50),
  6. Color buttonColor = ColorName.blue,
  7. Color disabledColor = ColorName.grey,
  8. bool isEnabled = true,
  9. double borderSideWidth = 2,
  10. Widget? icon,
  11. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10)),
  12. 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;