Flutter 中是否有网络,同步发送数据到服务器
Synchronize sending data to the server, whether there is internet or not in Flutter
我正在尝试在我的应用程序中添加时间特性,这样如果有 Internet,则在应用程序中发送数据,而在没有 Internet 的情况下,我保留它,然后在事件中发送有互联网。我应该怎么处理这个东西以及使用 http 或 dio
的首选库是什么
我使用 dio_http_cache: 插件,它适用于我,但最好的解决方案是 sqflite 或 hive
我正在尝试在我的应用程序中添加时间特性,这样如果有 Internet,则在应用程序中发送数据,而在没有 Internet 的情况下,我保留它,然后在事件中发送有互联网。我应该怎么处理这个东西以及使用 http 或 dio
的首选库是什么我使用 dio_http_cache: 插件,它适用于我,但最好的解决方案是 sqflite 或 hive