FLUTTER ECOSYSTEM

cb-cloud/flutter_in_app_notification

一個用於顯示自訂應用內通知的 Flutter 套件。

flutter_in_app_notification 專案封面
Stars
21
Forks
15
最近推送(UTC)
2023年12月20日
專案狀態
未封存
CBcloud GitHub avatar
GITHUB Organization

CBcloud ↗

語言DartHTMLSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

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

原始 README

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

展開 / 收合專案 README

💬 in_app_notification

pub package

A Flutter package to show custom in-app notification with any Widgets.

https://raw.githubusercontent.com/wiki/cb-cloud/flutter_in_app_notification/assets/doc/top.gif

✍️ Usage

  1. Import it.

    dependencies:
        in_app_notification: <latest-version>
    
    import 'package:in_app_notification/in_app_notification.dart';
    
  2. Place InAppNotification Widget into your app.

     return InAppNotification(
       child: MaterialApp(
         title: 'In-App Notification Demo',
         home: const HomePage(),
       ),
     );
    
  3. Invoke show() static method of InAppNotification.

    InAppNotification.show(
      child: NotificationBody(count: _count),
      context: context,
      onTap: () => print('Notification tapped!'),
    );
    

🗺 Roadmap / Known issue

See Discussions. If you have some idea or proposal, feel free to create new one.

💭 Have a question?

If you have a question or found issue, feel free to create an issue.