Skip to content

Commit 024f4e8

Browse files
[network_info_plus] Update network_info_plus to 7.0.0 (#987)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent fb4a7e7 commit 024f4e8

5 files changed

Lines changed: 26 additions & 34 deletions

File tree

packages/network_info_plus/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
## NEXT
1+
## 1.1.6
22

3+
* Update network_info_plus_platform_interface to 2.0.0.
4+
* Update network_info_plus to 7.0.0.
5+
* Update minimum supported SDK version to Flutter 3.27/Dart 3.6.
36
* Update code format.
47

58
## 1.1.5

packages/network_info_plus/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This package is not an _endorsed_ implementation of `network_info_plus`. Therefo
1010

1111
```yaml
1212
dependencies:
13-
network_info_plus: ^4.1.0
14-
network_info_plus_tizen: ^1.1.5
13+
network_info_plus: ^7.0.0
14+
network_info_plus_tizen: ^1.1.6
1515
```
1616
1717
Then you can import `network_info_plus` in your Dart code:

packages/network_info_plus/example/lib/main.dart

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,19 @@
44

55
// ignore_for_file: public_member_api_docs
66

7-
import 'dart:async';
87
import 'dart:developer' as developer;
9-
import 'dart:io';
108

11-
import 'package:flutter/foundation.dart';
129
import 'package:flutter/material.dart';
1310
import 'package:flutter/services.dart';
1411
import 'package:network_info_plus/network_info_plus.dart';
1512

16-
// Sets a platform override for desktop to avoid exceptions. See
17-
// https://flutter.dev/desktop#target-platform-override for more info.
18-
void _enablePlatformOverrideForDesktop() {
19-
if (!kIsWeb && (Platform.isWindows || Platform.isLinux)) {
20-
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
21-
}
22-
}
23-
2413
void main() {
25-
_enablePlatformOverrideForDesktop();
2614
runApp(const MyApp());
2715
}
2816

2917
class MyApp extends StatelessWidget {
3018
const MyApp({super.key});
3119

32-
// This widget is the root of your application.
3320
@override
3421
Widget build(BuildContext context) {
3522
return MaterialApp(
@@ -70,18 +57,20 @@ class _MyHomePageState extends State<MyHomePage> {
7057
elevation: 4,
7158
),
7259
body: Center(
73-
child: Column(
74-
mainAxisSize: MainAxisSize.min,
75-
children: [
76-
const Text(
77-
'Network info',
78-
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
60+
child: Column(
61+
mainAxisSize: MainAxisSize.min,
62+
children: [
63+
const Text(
64+
'Network info',
65+
style: TextStyle(
66+
fontSize: 16,
67+
fontWeight: FontWeight.bold,
7968
),
80-
const SizedBox(height: 16),
81-
Text(_connectionStatus),
82-
],
83-
),
84-
),
69+
),
70+
const SizedBox(height: 16),
71+
Text(_connectionStatus),
72+
],
73+
)),
8574
);
8675
}
8776

packages/network_info_plus/example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ description: Demonstrates how to use the network_info_plus_tizen plugin.
33
publish_to: "none"
44

55
environment:
6-
sdk: ">=3.1.0 <4.0.0"
7-
flutter: ">=3.13.0"
6+
sdk: ^3.6.0
7+
flutter: ">=3.27.0"
88

99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
network_info_plus: ^4.1.0
12+
network_info_plus: ^7.0.0
1313
network_info_plus_tizen:
1414
path: ../
1515

packages/network_info_plus/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: network_info_plus_tizen
22
description: Tizen implementation of the network_info_plus plugin
33
homepage: https://github.com/flutter-tizen/plugins
44
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/network_info_plus
5-
version: 1.1.5
5+
version: 1.1.6
66

77
environment:
8-
sdk: ">=3.1.0 <4.0.0"
9-
flutter: ">=3.13.0"
8+
sdk: ^3.6.0
9+
flutter: ">=3.27.0"
1010

1111
flutter:
1212
plugin:
@@ -18,7 +18,7 @@ flutter:
1818
dependencies:
1919
flutter:
2020
sdk: flutter
21-
network_info_plus_platform_interface: ^1.1.3
21+
network_info_plus_platform_interface: ^2.0.0
2222

2323
dev_dependencies:
2424
flutter_lints: ">=2.0.1 <4.0.0"

0 commit comments

Comments
 (0)