Ticket constructor

const Ticket({
  1. Key? key,
  2. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10),
  3. double borderRadius = 10,
  4. double clipRadius = 10,
  5. double smallClipRadius = 4,
  6. int numberOfSmallClips = 10,
  7. CardPosition cardPosition = CardPosition.horizontal,
  8. Color backgroundColor = Colors.blue,
  9. List<BoxShadow>? boxShadow,
  10. double ticketWidth = 350,
  11. double ticketHeight = 500,
  12. required Widget child,
  13. double circlePosition = 0.2,
})

Creates a new Ticket widget with customizable styling.

Implementation

const Ticket({
  Key? key,
  this.padding = const EdgeInsets.symmetric(horizontal: 10),
  this.borderRadius = 10,
  this.clipRadius = 10,
  this.smallClipRadius = 4,
  this.numberOfSmallClips = 10,
  this.cardPosition = CardPosition.horizontal,
  this.backgroundColor = Colors.blue,
  this.boxShadow,
  this.ticketWidth = 350,
  this.ticketHeight = 500,
  required this.child,
  this.circlePosition = 0.2,
}) : super(key: key);