Ticket constructor
const
Ticket({
- Key? key,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10),
- double borderRadius = 10,
- double clipRadius = 10,
- double smallClipRadius = 4,
- int numberOfSmallClips = 10,
- CardPosition cardPosition = CardPosition.horizontal,
- Color backgroundColor = Colors.blue,
- List<
BoxShadow> ? boxShadow, - double ticketWidth = 350,
- double ticketHeight = 500,
- required Widget child,
- 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);