ticket_card 0.2.0

Flutter Android iOS web

A ticket-like card widget that we can use to create something like a train or movie ticket interface

English | 简体中文

ticket_card #

pub package

A ticket-style card

图片名称

Usage #

To use this plugin, add ticket_card as a dependency in your pubspec.yaml file.

Widget #

TicketCard #

PropDescription
lineFromTopThe distance from the top of the divider
lineRadiusThe radius of the rounded corners on either side of the divider
lineColorThe color of the dividing line
decorationTicket-style card decorator
childA child component of a ticket card

Example #

// 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),
                ),
              ),
            )
3
likes
100
pub points
60%
popularity

A ticket-like card widget that we can use to create something like a train or movie ticket interface

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lmy2534290808@gmail.com

License

unknown (LICENSE)

Dependencies

flutter, path_drawing

More

Packages that depend on ticket_card