English | 简体中文
A ticket-style card
To use this plugin, add ticket_card as a dependency in your pubspec.yaml file.
| Prop | Description |
|---|---|
| lineFromTop | The distance from the top of the divider |
| lineRadius | The radius of the rounded corners on either side of the divider |
| lineColor | The color of the dividing line |
| decoration | Ticket-style card decorator |
| child | A child component of a ticket card |
// Import package import 'package:ticket_card/ticket_card.dart'; import 'package:flutter/material.dart'; TicketCard( decoration: TicketDecoration( shadow: [TicketShadow(color: Colors.black, elevation: 6)], border: TicketBorder( color: Colors.green, width: 0.1, style: TicketBorderStyle.dotted ) ), lineFromTop: 100, child: Container( height: 200, width: 200, color: Colors.white, child: Text( "sdfsf", style: TextStyle(color: Colors.black), ), ), )