PrettyCapsuleButton constructor

const PrettyCapsuleButton({
  1. Key? key,
  2. TextStyle? labelStyle,
  3. required String label,
  4. Color bgColor = kBlack,
  5. Color foregroundColor = kWhite,
  6. IconData icon = Icons.arrow_forward_ios,
  7. double iconSize = 16,
  8. required VoidCallback onPressed,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: s24, vertical: s14),
})

Implementation

const PrettyCapsuleButton({
  super.key,
  this.labelStyle,
  required this.label,
  this.bgColor = kBlack,
  this.foregroundColor = kWhite,
  this.icon = Icons.arrow_forward_ios,
  this.iconSize = 16,
  required this.onPressed,
  this.padding = const EdgeInsets.symmetric(horizontal: s24, vertical: s14),
});