From 7e533da205d56d902c97c80168077613c68fe58d Mon Sep 17 00:00:00 2001 From: tommyxchow Date: Fri, 10 Dec 2021 01:34:00 -0500 Subject: [PATCH] Upgrade to Flutter 2.8 --- lib/core/settings/profile_card.dart | 1 - .../category_streams.dart | 1 - lib/screens/channel/chat/chat_stats.dart | 1 - lib/screens/channel/chat/chat_store.dart | 1 - lib/screens/channel/video/video.dart | 1 + lib/screens/channel/video_chat.dart | 1 - pubspec.lock | 22 +++++++++---------- pubspec.yaml | 2 +- 8 files changed, 13 insertions(+), 17 deletions(-) diff --git a/lib/core/settings/profile_card.dart b/lib/core/settings/profile_card.dart index 07907ffd..1d65294a 100644 --- a/lib/core/settings/profile_card.dart +++ b/lib/core/settings/profile_card.dart @@ -1,6 +1,5 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:frosty/core/auth/auth_store.dart'; diff --git a/lib/screens/categories/category_streams_list/category_streams.dart b/lib/screens/categories/category_streams_list/category_streams.dart index 15c6ab4f..27316263 100644 --- a/lib/screens/categories/category_streams_list/category_streams.dart +++ b/lib/screens/categories/category_streams_list/category_streams.dart @@ -1,6 +1,5 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:frosty/screens/categories/category_streams_list/category_streams_store.dart'; import 'package:frosty/screens/stream_list/stream_card.dart'; diff --git a/lib/screens/channel/chat/chat_stats.dart b/lib/screens/channel/chat/chat_stats.dart index 4a7abca8..e8fbcdc9 100644 --- a/lib/screens/channel/chat/chat_stats.dart +++ b/lib/screens/channel/chat/chat_stats.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:frosty/screens/channel/chat/chat_store.dart'; diff --git a/lib/screens/channel/chat/chat_store.dart b/lib/screens/channel/chat/chat_store.dart index 8ae894ad..849ba8fd 100644 --- a/lib/screens/channel/chat/chat_store.dart +++ b/lib/screens/channel/chat/chat_store.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; -import 'package:flutter/widgets.dart'; import 'package:frosty/api/bttv_api.dart'; import 'package:frosty/api/ffz_api.dart'; import 'package:frosty/api/irc_api.dart'; diff --git a/lib/screens/channel/video/video.dart b/lib/screens/channel/video/video.dart index ba31a9fb..c8bc409a 100644 --- a/lib/screens/channel/video/video.dart +++ b/lib/screens/channel/video/video.dart @@ -24,6 +24,7 @@ class Video extends StatelessWidget { children: [ WebView( initialUrl: 'https://player.twitch.tv/?channel=$userLogin&controls=false&muted=false&parent=frosty', + backgroundColor: const Color(0x00000000), javascriptMode: JavascriptMode.unrestricted, allowsInlineMediaPlayback: true, initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow, diff --git a/lib/screens/channel/video_chat.dart b/lib/screens/channel/video_chat.dart index 3827a372..e68d0bac 100644 --- a/lib/screens/channel/video_chat.dart +++ b/lib/screens/channel/video_chat.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:frosty/core/auth/auth_store.dart'; import 'package:frosty/core/settings/settings.dart'; diff --git a/pubspec.lock b/pubspec.lock index 7caef514..0b72fd74 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.1" + version: "2.8.2" boolean_selector: dependency: transitive description: @@ -119,7 +119,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: @@ -407,7 +407,7 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: @@ -470,7 +470,7 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.7" + version: "2.0.8" path_provider_android: dependency: transitive description: @@ -568,7 +568,7 @@ packages: name: pubspec_parse url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" rxdart: dependency: transitive description: @@ -582,7 +582,7 @@ packages: name: shared_preferences url: "https://pub.dartlang.org" source: hosted - version: "2.0.9" + version: "2.0.10" shared_preferences_android: dependency: transitive description: @@ -734,7 +734,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.2" + version: "0.4.3" timing: dependency: transitive description: @@ -762,7 +762,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" watcher: dependency: transitive description: @@ -783,14 +783,14 @@ packages: name: webview_flutter url: "https://pub.dartlang.org" source: hosted - version: "2.3.1" + version: "3.0.0" webview_flutter_android: dependency: transitive description: name: webview_flutter_android url: "https://pub.dartlang.org" source: hosted - version: "2.4.0" + version: "2.8.0" webview_flutter_platform_interface: dependency: transitive description: @@ -804,7 +804,7 @@ packages: name: webview_flutter_wkwebview url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.7.1" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e434dda8..682a38bc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -41,7 +41,7 @@ dependencies: flutter_web_auth: ^0.3.1 intl: ^0.17.0 cached_network_image: ^3.1.0 - webview_flutter: ^2.3.1 + webview_flutter: ^3.0.0 provider: ^6.0.1 mobx: ^2.0.0 flutter_mobx: ^2.0.0