WorkoutPreviewButton constructor

const WorkoutPreviewButton({
  1. Key? key,
  2. required Workout workout,
  3. String? buttonTitle = 'Preview & Start Workout',
  4. Color? backgroundColor = const Color.fromARGB(255, 0, 0, 0),
  5. Color? foregroundColor = const Color.fromARGB(255, 255, 255, 255),
  6. double? cornerRadiusSize = 10,
  7. double? buttonHeight = 54,
  8. double? fontSize = 16,
  9. 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,
});