movie_ticket_card 0.0.1 copy "movie_ticket_card: ^0.0.1" to clipboard
movie_ticket_card: ^0.0.1 copied to clipboard

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

English (./README_zh-CN.md)

movie_ticket_card #

pub package

A ticket-style cardy

图片名称

Usage #

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

Widget #

TicketCard #

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

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),
                ),
              ),
            )
1
likes
110
pub points
42%
popularity

Publisher

unverified uploader

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

License

MIT (LICENSE)

Dependencies

flutter, path_drawing

More

Packages that depend on movie_ticket_card