FLUTTER ECOSYSTEM

BrunoJurkovic/popup_card

用於顯示彈出卡式組件的簡單套件。

popup_card 專案封面
Stars
4
Forks
2
最近推送(UTC)
2022年7月28日
專案狀態
未封存
Bruno Jurković GitHub avatar
GITHUB User

Bruno Jurković ↗

making reasonably cool things ( that are sometimes unmaintained :P )

@valere-marginsKarlovac, Croatia
語言DartHTMLSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

GitHub issues GitHub stars GitHub forks


popup_card

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

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License

About The Project

screenshot

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
  1. Go to the pub.dev link at https://example.com and copy the latest version
  2. Go to pubspec.yaml and paste:
dependencies:
  popup_card: [latest_version]
  1. 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.

  1. 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: ...
    ),
  1. 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.
      ),

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.

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

License

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