Migrate deprecated dependency: connectivity

This commit is contained in:
Ming Ming 2021-07-12 19:42:42 +08:00
parent a0bbddfe3b
commit f7a5dba9d0
3 changed files with 35 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import 'package:connectivity/connectivity.dart'; import 'package:connectivity_plus/connectivity_plus.dart';
Future<void> waitUntilWifi() async { Future<void> waitUntilWifi() async {
while (true) { while (true) {

View file

@ -99,34 +99,48 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.15.0" version: "1.15.0"
connectivity: connectivity_plus:
dependency: "direct main" dependency: "direct main"
description: description:
name: connectivity name: connectivity_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.4" version: "1.0.5"
connectivity_for_web: connectivity_plus_linux:
dependency: transitive dependency: transitive
description: description:
name: connectivity_for_web name: connectivity_plus_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.0" version: "1.0.3"
connectivity_macos: connectivity_plus_macos:
dependency: transitive dependency: transitive
description: description:
name: connectivity_macos name: connectivity_plus_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.0" version: "1.0.2"
connectivity_platform_interface: connectivity_plus_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: connectivity_platform_interface name: connectivity_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "1.0.2"
connectivity_plus_web:
dependency: transitive
description:
name: connectivity_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
connectivity_plus_windows:
dependency: transitive
description:
name: connectivity_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
convert: convert:
dependency: transitive dependency: transitive
description: description:
@ -148,6 +162,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.1"
dbus:
dependency: transitive
description:
name: dbus
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
draggable_scrollbar: draggable_scrollbar:
dependency: "direct main" dependency: "direct main"
description: description:

View file

@ -30,7 +30,7 @@ dependencies:
android_intent_plus: ^1.0.2 android_intent_plus: ^1.0.2
bloc: ^7.0.0 bloc: ^7.0.0
cached_network_image: ^3.0.0 cached_network_image: ^3.0.0
connectivity: ^3.0.2 connectivity_plus: ^1.0.5
draggable_scrollbar: draggable_scrollbar:
git: git:
url: https://gitlab.com/nkming2/flutter-draggable-scrollbar url: https://gitlab.com/nkming2/flutter-draggable-scrollbar