WorkoutPreviewButton constructor
const
WorkoutPreviewButton({
- Key? key,
- required Workout workout,
- String? buttonTitle = 'Preview & Start Workout',
- Color? backgroundColor = const Color.fromARGB(255, 0, 0, 0),
- Color? foregroundColor = const Color.fromARGB(255, 255, 255, 255),
- double? cornerRadiusSize = 10,
- double? buttonHeight = 54,
- double? fontSize = 16,
- FontWeight? fontWeight = FontWeight.w400,
Creates a new workout preview button
Implementation
const WorkoutPreviewButton({
super.key,
required this.workout,
this.buttonTitle = 'Preview & Start Workout',
this.backgroundColor = const Color.fromARGB(255, 0, 0, 0),
this.foregroundColor = const Color.fromARGB(255, 255, 255, 255),
this.cornerRadiusSize = 10,
this.buttonHeight = 54,
this.fontSize = 16,
this.fontWeight = FontWeight.w400,
});