Skip to content

Commit

Permalink
upgrade flutter to 3.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fbriere committed May 14, 2024
1 parent f83961b commit b0f9572
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 111 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install and set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'
cache: true

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
# - name: Install and set up Flutter
# uses: subosito/flutter-action@v2
# with:
# flutter-version: '3.19.5'
# flutter-version: '3.22.0'
# channel: 'stable'
#
# - name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Install and set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'

- name: Set up signing key
Expand Down
4 changes: 2 additions & 2 deletions lib/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class _HomeScreenState extends State<_HomeScreen> {
// The dialog of information is displayed once.
await TwitterAccount.announcementRegularAccountAndUnauthenticatedAccess(context);

ReceiveSharingIntent.getInitialMedia().then((List<SharedMediaFile> value) async {
ReceiveSharingIntent.instance.getInitialMedia().then((List<SharedMediaFile> value) async {
if (value.isNotEmpty) {
log.info('****** ReceiveSharingIntent.getInitialText - value=${value[0].path}');
Uri? link = Uri.tryParse(value[0].path);
Expand All @@ -190,7 +190,7 @@ class _HomeScreenState extends State<_HomeScreen> {
}
});
// Attach a listener to the stream
_sub = ReceiveSharingIntent.getMediaStream().listen((List<SharedMediaFile> value) async {
_sub = ReceiveSharingIntent.instance.getMediaStream().listen((List<SharedMediaFile> value) async {
if (value.isNotEmpty) {
log.info('****** ReceiveSharingIntent.getTextStream - value=${value[0].path}');
Uri? link = Uri.tryParse(value[0].path);
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:device_preview/device_preview.dart';
//import 'package:device_preview/device_preview.dart';
import 'package:faker/faker.dart';
import 'package:flex_color_scheme/flex_color_scheme.dart';
import 'package:flutter/foundation.dart';
Expand Down
Loading

0 comments on commit b0f9572

Please sign in to comment.