FLUTTER ECOSYSTEM

mattrltrent/alert_banner

一個強大且美觀的提醒橫幅,可動畫顯示訊息給使用者。Pub 套件。

警告橫幅 專案封面
Stars
1
Forks
3
最近推送(UTC)
2023年12月2日
專案狀態
未封存
Matthew Trent GitHub avatar
GITHUB User

Matthew Trent ↗

SWE @ Sorce (YC F25) | MS CS @ Columbia | Prev. @ Probe, Magi, Confesi (Founder) | Honors BS CS w/ Distinction

Sorce (YC F25)San Francisco, CA
語言C++CMakeDartHTMLCSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.0

原始 README

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

展開 / 收合專案 README

🔥 A powerful & beautiful alert banner that animates a message to the user 🔥

  • Submit an issue here.

  • Create a pull request here.

  • Contact me via email [here](mailto:me@matthewtrent.me).

One simple way to use 📚

Here is a quick example. Simply call showAlertBanner(...).

TextButton(
    onPressed: () =>  showAlertBanner( // <-- The function!
    context,
    () =>  print("TAPPED"),
    const  ExampleAlertBannerChild(), // <-- Put any widget here you want!
    alertBannerLocation:  AlertBannerLocation.bottom,
    ),
    child:  const  Text("Show alert"),
    // .. EDIT MORE FIELDS HERE ...
),

Installing 🧑‍🏫

  • Install the package from the pub.

  • flutter pub add alert_banner

  • Import the package.

  • import 'package:alert_banner/exports.dart';

Example Gif 📸

https://github.com/mattrltrent/alert_banner/blob/main/resources/demo.gif?raw=true

Additional Info 📣

analytics