搜索插件、代码仓与 APP 分类

connectivity_wrapper 封面
插件详情v2.0.0

connectivity_wrapper

一个提供网络感知小部件的新Flutter包。它允许Flutter应用在未连接到网络或没有连接时,为用户提供反馈。

AndroidiOSmacOSWindowsLinux
近 30 天下载
1200
喜欢数
157
Pub 分数
160

安装插件

flutter pub add connectivity_wrapper

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

ConnectivityWrapper 是一个 Flutter 包,提供网络感知小部件,帮助应用程序动态响应连接状态的变化。它使开发者能够在设备离线或没有互联网连接时显示适当的 UI 反馈。该包将内容包装在监控网络状态的组件树中,并根据当前连接状态触发视觉更新,从而在网络波动期间提升用户体验。它支持 Android、iOS、macOS、Windows 和 Linux 等多个平台。

适合场景

  • 显示离线横幅
  • 在连接丢失期间显示加载状态
  • 为依赖网络的操作提供反馈
  • 具有网络感知能力的 API 调用处理
  • 在间歇性连接期间改善用户体验

主要特点

  • 实时网络状态监控
  • 可自定义的离线用户界面
  • 自动重连检测
  • 跨平台支持
  • 与现有小部件的简单集成

适合对象

  • 需要实时网络反馈的应用程序
  • 开发人员构建健壮的离线体验
  • 频繁进行 API 交互的项目
  • 移动和桌面应用程序
  • 以用户体验为中心的应用开发

使用建议

  • Android 需要互联网权限
  • 可能需要额外的错误处理
  • 不适用于后台网络检查
  • 仅限UI级别的连接反馈
  • 依赖于底层连接插件

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Nonstop Logo

NonStop

Digital Product Development Experts for Startups & Enterprises

About | Website

Flutter Forge Logo

All Contributors

A place where Flutter packages are crafted and built.

NonStop CLI generates a Melos-managed Flutter starter with SOLID-oriented boundaries, offline unit/widget tests, a strict 100% handwritten-runtime line-coverage gate and generated CI. Its template is verified by generating and building real applications, including minimal and optional-module configurations.

  • All shared packages are in the /packages directory
  • All plugins are in the /plugins directory
Packages
nonstop_cli
cli_core
timer_button
connectivity_wrapper
ns_firebase_utils
ns_utils
ns_intl_phone_input
dzod
html_rich_text
morse_tap
Plugins
contact_permission

🔗 Connect with NonStop

Stay connected and get the latest updates!

LinkedIn X.com Instagram YouTube [Email](mailto:contact@nonstopio.com)


⭐ Star us on GitHub if this helped you!

Analytics

Alt

Contributors

Ajay Kumar
Ajay Kumar

💻 🖋 📖 💡 🚧
rajan-nonstopio
rajan-nonstopio

💻
Add your contributions

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。