Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/network_info_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## NEXT
## 1.1.6

* Update network_info_plus_platform_interface to 2.0.0.
* Update network_info_plus to 7.0.0.
* Update minimum supported SDK version to Flutter 3.27/Dart 3.6.
* Update code format.

## 1.1.5
Expand Down
4 changes: 2 additions & 2 deletions packages/network_info_plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This package is not an _endorsed_ implementation of `network_info_plus`. Therefo

```yaml
dependencies:
network_info_plus: ^4.1.0
network_info_plus_tizen: ^1.1.5
network_info_plus: ^7.0.0
network_info_plus_tizen: ^1.1.6
```

Then you can import `network_info_plus` in your Dart code:
Expand Down
37 changes: 13 additions & 24 deletions packages/network_info_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,19 @@

// ignore_for_file: public_member_api_docs

import 'dart:async';
import 'dart:developer' as developer;
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:network_info_plus/network_info_plus.dart';

// Sets a platform override for desktop to avoid exceptions. See
// https://flutter.dev/desktop#target-platform-override for more info.
void _enablePlatformOverrideForDesktop() {
if (!kIsWeb && (Platform.isWindows || Platform.isLinux)) {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
}
}

void main() {
_enablePlatformOverrideForDesktop();
runApp(const MyApp());
}

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

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
Expand Down Expand Up @@ -70,18 +57,20 @@ class _MyHomePageState extends State<MyHomePage> {
elevation: 4,
),
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Text(
'Network info',
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Text(
'Network info',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
const SizedBox(height: 16),
Text(_connectionStatus),
],
),
),
),
const SizedBox(height: 16),
Text(_connectionStatus),
],
)),
);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/network_info_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ description: Demonstrates how to use the network_info_plus_tizen plugin.
publish_to: "none"

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.13.0"
sdk: ^3.6.0
flutter: ">=3.27.0"

dependencies:
flutter:
sdk: flutter
network_info_plus: ^4.1.0
network_info_plus: ^7.0.0
network_info_plus_tizen:
path: ../

Expand Down
8 changes: 4 additions & 4 deletions packages/network_info_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: network_info_plus_tizen
description: Tizen implementation of the network_info_plus plugin
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/network_info_plus
version: 1.1.5
version: 1.1.6

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.13.0"
sdk: ^3.6.0
flutter: ">=3.27.0"

flutter:
plugin:
Expand All @@ -18,7 +18,7 @@ flutter:
dependencies:
flutter:
sdk: flutter
network_info_plus_platform_interface: ^1.1.3
network_info_plus_platform_interface: ^2.0.0

dev_dependencies:
flutter_lints: ">=2.0.1 <4.0.0"
Loading