CommonButton constructor

const CommonButton({
  1. Key? key,
  2. Color tColor = Colors.white,
  3. required String text,
  4. Function? onPress,
  5. double radius = 11,
  6. double fSize = 14,
  7. Color? bgColor = Colors.orange,
  8. FontWeight fontWeight = FontWeight.normal,
  9. Alignment textAlign = Alignment.center,
  10. int customShape = 1,
  11. bool isIcon = false,
  12. IconData? icon = Icons.save,
})

Implementation

const CommonButton(
    {Key? key,
    this.tColor = Colors.white,
    required this.text,
    this.onPress,
    this.radius = 11,
    this.fSize = 14,
    this.bgColor = Colors.orange,
    this.fontWeight = FontWeight.normal,
    this.textAlign = Alignment.center,
    this.customShape = 1,
    this.isIcon = false,
    this.icon = Icons.save})
    : super(key: key);