Upgrade Flutter/Dart and dependencies (#265)

* Fix new lint issues

* Upgrade packages and remove `device_preview`

* Regenerate splash assets

* Migrate to `webview_flutter` 4.0

* Upgrade to Flutter 3.10 and Dart 3

* Update Podfile

* Fix video not disposing when leaving channel

* Remove `tuple` package

* Upgrade packages

* Upgrade packages

* Update podfile

* Upgrade packages

* Upgrade packages
This commit is contained in:
Tommy 2023-05-30 21:10:04 -04:00 • committed by GitHub
parent b98dd967cb
commit 9bfcd49037
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 492 additions and 513 deletions

View file

@ -37,17 +37,8 @@ class _VideoState extends State<Video> with WidgetsBindingObserver {
@override
Widget build(BuildContext context) {
return WebView(
backgroundColor: Colors.black,
initialUrl: widget.videoStore.videoUrl,
javascriptMode: JavascriptMode.unrestricted,
allowsInlineMediaPlayback: true,
initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow,
onWebViewCreated: (controller) =>
widget.videoStore.controller = controller,
onPageFinished: (string) => widget.videoStore.initVideo(),
navigationDelegate: widget.videoStore.handleNavigation,
javascriptChannels: widget.videoStore.javascriptChannels,
return WebViewWidget(
controller: widget.videoStore.videoWebViewController,
);
}