搜尋分類、套件與程式碼儲存庫

in_app_notification 封面
套件詳情v1.1.2

in_app_notification

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

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
5270
喜歡數
188
Pub 分數
160

安裝套件

flutter pub add in_app_notification

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,讓開發者能夠使用任何 Flutter 小部件顯示自訂應用內通知。它提供了一種彈性且輕量的解決方案,可直接在應用介面中顯示暫時訊息,並支援外觀與行為的完整自訂。非常適合傳達回饋、警告或狀態更新,而不需依賴系統層級的通知。此套件適用於所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

適用情境

  • 顯示使用者反饋
  • 顯示表單驗證錯誤
  • 通知使用者成功動作
  • 自定通知版面
  • 實施即時警告
  • 透過動態訊息增強UI

主要特色

  • 支援任何 widget 作為通知內容
  • 跨平台相容性
  • 與現有 UI 的輕鬆整合
  • 可設定的位置與動畫
  • 輕量且高效能
  • 透過自定義建構器擴展

適合對象

  • 需要自定義應用內警示的開發者
  • 需要豐富通知設計的應用程式
  • 具有多平台部署的項目
  • 希望獲得簡單但靈活的吐司解決方案的團隊
  • UI密集型應用
  • 即時應用反饋系統

使用建議

  • 需要手動管理通知生命週期
  • 可能需要額外的樣式以保持外觀一致
  • 不適用於持續通知
  • 與專用的提示訊息套件相比,內建主題較少
  • 最好與正確的狀態管理配合使用
  • 如果過度使用複雜小部件,性能影響

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

💬 in_app_notification

pub package

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

✍️ 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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。