v0.1.0popup_card
一種簡單的方法,用於在需要輸入時向使用者顯示一些資訊。
用於顯示彈出卡式組件的簡單套件。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
GitHub issues GitHub stars GitHub forks
An awesome and simple card-styled dialog with a beautiful animation.
screenshot
There are many similar dialog projects that display a dialog, but popup_card features a beautiful transition, Hero style.
Follow these steps and you will be up and running in no time!
dependencies:
popup_card: [latest_version]
flutter pub get in terminal.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.
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: ...
),
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.
),
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.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE for more information.