CommonButton constructor
const
CommonButton({
- Key? key,
- Color tColor = Colors.white,
- required String text,
- Function? onPress,
- double radius = 11,
- double fSize = 14,
- Color? bgColor = Colors.orange,
- FontWeight fontWeight = FontWeight.normal,
- Alignment textAlign = Alignment.center,
- int customShape = 1,
- bool isIcon = false,
- 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);