PrimaryButton1 constructor

const PrimaryButton1({
  1. Key? key,
  2. required String? text,
  3. required GestureTapCallback? onPress,
  4. bool withShadow = false,
  5. bool? isEnabled = true,
  6. FontWeight textWeight = TextStyleBuilder.boldFontWeight,
  7. ImageIcon? icon,
  8. double circularBorderRadius = 10.0,
  9. double fontSize = TextStyleBuilder.normalFontSize,
})

Implementation

const PrimaryButton1({Key? key,
 required this.text,
 required this.onPress,
 this.withShadow = false,
 this.isEnabled = true,
 this.textWeight = TextStyleBuilder.boldFontWeight,
 this.icon,
 this.circularBorderRadius = 10.0,
 this.fontSize = TextStyleBuilder.normalFontSize,
  }) : super(key: key);