Its a clean Ticket view or Receipt view for Flutter application with some UI customization.
TicketViewFlutter is a simple and customizable Ticket/Receipt View for Flutter. The source code is 100% Dart.
I need some clean Ticket/Receipt View view for my Flutter application.
Getting started #
Add this to your package's pubspec.yaml file:
This library is posted in pub.dev
dependencies: ticketview: ^1.0.0
After Importing this library, you can directly use this view in your Widget tree
Default Ticket View
TicketView( child: Container(), )
Customized Receipt View
TicketView( backgroundPadding: EdgeInsets.symmetric(vertical: 0, horizontal: 20), backgroundColor: Color(0xFF8F1299), contentPadding: EdgeInsets.symmetric(vertical: 24, horizontal: 0), drawArc: false, triangleAxis: Axis.vertical, borderRadius: 6, drawDivider: true, trianglePos: .5, child: Container(), )
Depending on your view you may want to tweak the UI. For now you can these custom attributes
|Color||Background card color for TicketView|
|Color||Content card color for TicketView|
|Default View||Receipt View|
Saurabh K Sharma - GIT
I am very new to open source community. All suggestion and improvement are most welcomed.
- Fork it (https://github.com/sorbh/ticketviewflutter/fork)
- Create your feature branch (
git checkout -b feature/fooBar)
- Commit your changes (
git commit -am 'Add some fooBar')
- Push to the branch (
git push origin feature/fooBar)
- Create a new Pull Request