Skip to content

Commit

Permalink
[connectivity_plus] Update package dependency (flutter-tizen#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanseo0 authored Oct 12, 2023
1 parent f61b144 commit fd17ae4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions packages/connectivity_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.4

* Update connectivity_plus to 4.0.1.
* Update connectivity_plus_platform_interface to 1.2.4.
* Update the example app.

## 1.1.3

* Remove unnecessary `StreamHandlerError` implementation.
Expand Down
4 changes: 2 additions & 2 deletions packages/connectivity_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 `connectivity_plus`. Therefo

```yaml
dependencies:
connectivity_plus: ^2.3.0
connectivity_plus_tizen: ^1.1.3
connectivity_plus: ^4.0.1
connectivity_plus_tizen: ^1.1.4
```
Then you can import `connectivity_plus` in your Dart code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('Connectivity test driver', () {
late Connectivity _connectivity;
late Connectivity connectivity;

setUpAll(() async {
_connectivity = Connectivity();
connectivity = Connectivity();
});

testWidgets('test connectivity result', (WidgetTester tester) async {
final result = await _connectivity.checkConnectivity();
final result = await connectivity.checkConnectivity();
expect(result, isNotNull);
});
});
Expand Down
6 changes: 4 additions & 2 deletions packages/connectivity_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
colorSchemeSeed: const Color(0x9f4376f8),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
Expand All @@ -37,7 +38,7 @@ class MyHomePage extends StatefulWidget {
final String title;

@override
_MyHomePageState createState() => _MyHomePageState();
State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
Expand Down Expand Up @@ -92,6 +93,7 @@ class _MyHomePageState extends State<MyHomePage> {
return Scaffold(
appBar: AppBar(
title: const Text('Connectivity example app'),
elevation: 4,
),
body: Center(
child: Text('Connection Status: ${_connectionStatus.toString()}')),
Expand Down
4 changes: 2 additions & 2 deletions packages/connectivity_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
flutter: ">=3.3.0"

dependencies:
connectivity_plus: ^2.3.0
connectivity_plus: ^4.0.1
connectivity_plus_tizen:
path: ../
flutter:
Expand All @@ -22,7 +22,7 @@ dev_dependencies:
sdk: flutter
integration_test_tizen:
path: ../../integration_test/
flutter_lints: ^1.0.4
flutter_lints: ^2.0.1

flutter:
uses-material-design: true
6 changes: 3 additions & 3 deletions packages/connectivity_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: connectivity_plus_tizen
description: Tizen implementation of the connectivity_plus plugin.
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/connectivity_plus
version: 1.1.3
version: 1.1.4

environment:
sdk: ">=2.18.0 <4.0.0"
Expand All @@ -16,9 +16,9 @@ flutter:
fileName: connectivity_plus_tizen_plugin.h

dependencies:
connectivity_plus_platform_interface: ^1.2.0
connectivity_plus_platform_interface: ^1.2.4
flutter:
sdk: flutter

dev_dependencies:
flutter_lints: ^1.0.4
flutter_lints: ^2.0.1

0 comments on commit fd17ae4

Please sign in to comment.