Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 8f2b9e3

Browse files
committed
Revert changes in connectivity example.
1 parent 8bbf89c commit 8f2b9e3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/connectivity/connectivity/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class _MyHomePageState extends State<MyHomePage> {
103103
String wifiName, wifiBSSID, wifiIP;
104104

105105
try {
106-
if (!kIsWeb && Platform.isIOS) {
106+
if (Platform.isIOS) {
107107
LocationAuthorizationStatus status =
108108
await _connectivity.getLocationServiceAuthorization();
109109
if (status == LocationAuthorizationStatus.notDetermined) {
@@ -125,7 +125,7 @@ class _MyHomePageState extends State<MyHomePage> {
125125
}
126126

127127
try {
128-
if (!kIsWeb && Platform.isIOS) {
128+
if (Platform.isIOS) {
129129
LocationAuthorizationStatus status =
130130
await _connectivity.getLocationServiceAuthorization();
131131
if (status == LocationAuthorizationStatus.notDetermined) {

packages/connectivity/connectivity/example/pubspec.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ dependencies:
66
sdk: flutter
77
connectivity:
88
path: ../
9-
experimental_connectivity_web:
10-
path: ../../experimental_connectivity_web
119

1210
dev_dependencies:
1311
flutter_driver:

0 commit comments

Comments
 (0)