FXCurvedButton constructor
const
FXCurvedButton({
- Key? key,
- required double width,
- required String title,
- required VoidCallback onTap,
- String testKey = '',
- Color backgroundColor = Colors.grey,
- EdgeInsetsGeometry padding1 = const EdgeInsets.all(10.0),
- EdgeInsetsGeometry padding2 = const EdgeInsets.symmetric(horizontal: 10.0, vertical: margin),
- double borderRadius = 0.0,
- double borderWidth = 0.0,
- Color? borderColor,
- List<
BoxShadow> ? boxShadow, - Color textColor = Colors.black,
- double fontSize = fontSizeM,
Implementation
const FXCurvedButton({
Key? key,
required this.width,
required this.title,
required this.onTap,
this.testKey = '',
this.backgroundColor = Colors.grey,
this.padding1 = const EdgeInsets.all(10.0),
this.padding2 = const EdgeInsets.symmetric(
horizontal: 10.0,
vertical: margin,
),
this.borderRadius = 0.0,
this.borderWidth = 0.0,
this.borderColor,
this.boxShadow,
this.textColor = Colors.black,
this.fontSize = fontSizeM,
}) : super(key: key);