Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency connectivity_plus to v6 #28

Merged
merged 2 commits into from
Sep 15, 2024
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
4 changes: 0 additions & 4 deletions .fvm/fvm_config.json

This file was deleted.

4 changes: 4 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutter": "3.24.3",
"flavors": {}
}
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
channel: 'stable'
architecture: x64
flutter-version: '3.13.8'
flutter-version: '3.24.3'
- name: Install dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5
- name: Install project dependencies
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
channel: 'stable'
architecture: x64
flutter-version: '3.13.8'
flutter-version: '3.24.3'
- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
with:
channel: 'stable'
architecture: x64
flutter-version: '3.13.8'
flutter-version: '3.24.3'
- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/.fvm/flutter_sdk/

# Flutter generated files
*.gr.dart
*.g.dart
*.freezed.dart

# FVM Related
.fvm/
4 changes: 2 additions & 2 deletions lib/pages/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class MainPage extends StatelessWidget {
);

Widget _connectivityChecker(BuildContext context) =>
StreamBuilder<ConnectivityResult>(
StreamBuilder<List<ConnectivityResult>>(
stream: Connectivity().onConnectivityChanged,
builder: (context, snapshot) {
if (snapshot.hasData) {
if (snapshot.data != ConnectivityResult.none) {
if (!snapshot.data!.contains(ConnectivityResult.none)) {
return _body(context);
} else {
return _noConnection(context);
Expand Down
2 changes: 1 addition & 1 deletion macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import path_provider_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
Loading
Loading