popup_card

Last updated:

0 purchases

popup_card Image
popup_card Images
Add to Cart

Description:

popup card

popup_card

An awesome and simple card-styled dialog with a beautiful animation.




Table of Contents


About The Project


Getting Started

Installation


Usage
Contributing
License



About The Project #

There are many similar dialog projects that display a dialog, but popup_card features a beautiful
transition, Hero style.

Getting Started #
Follow these steps and you will be up and running in no time!
Installation #

Go to the pub.dev link at https://example.com and copy the latest version
Go to pubspec.yaml and paste:

dependencies:
popup_card: [latest_version]
copied to clipboard

Run flutter pub get in terminal.


Usage #
popup_card works in two steps: you wrap the widget with the package's custom gesture detector, and then provide it some info
with a popUp property to display the actual popup item.

Wrap a widget with a PopUpItemDetector and provide it with a tag:

PopupItemLauncher(
tag: 'test',
child: Material(
color: Colors.white,
elevation: 2,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)),
child: const Icon(
Icons.add_rounded,
size: 56,
),
),
popUp: ...
),
copied to clipboard

Provide the popUp paramater:

popUp: PopUpItem(
padding: EdgeInsets.all(8), // Padding inside of the card
color: Colors.white, // Color of the card
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)), // Shape of the card
elevation: 2, // Elevation of the card
tag: 'test', // MUST BE THE SAME AS IN `PopupItemLauncher`
child: PopUpItemBody(), // Your custom child widget.
),
copied to clipboard

Contributing #
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

Fork the Project
Create your Feature Branch (git checkout -b feature/AmazingFeature)
Commit your Changes (git commit -m 'Add some AmazingFeature')
Push to the Branch (git push origin feature/AmazingFeature)
Open a Pull Request


License #
Distributed under the MIT License. See LICENSE for more information.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.