Fix issue with Youtube player blocking clicks on the back btn
This commit is contained in:
parent
ab7ce7bcd6
commit
c7f00c8d32
@ -1,4 +1,5 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||
import 'package:wonders/common_libs.dart';
|
||||
import 'package:wonders/logic/common/platform_info.dart';
|
||||
import 'package:youtube_player_iframe/youtube_player_iframe.dart';
|
||||
@ -69,7 +70,10 @@ class _FullscreenVideoViewerState extends State<FullscreenVideoViewer> {
|
||||
SafeArea(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all($styles.insets.md),
|
||||
child: const BackBtn(),
|
||||
// Wrap btn in a PointerInterceptor to prevent the HTML video player from intercepting the pointer (https://pub.dev/packages/pointer_interceptor)
|
||||
child: PointerInterceptor(
|
||||
child: const BackBtn(),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
12
pubspec.lock
12
pubspec.lock
@ -548,10 +548,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: path_provider
|
||||
sha256: "909b84830485dbcd0308edf6f7368bc8fd76afa26a270420f34cabea2a6467a0"
|
||||
sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
version: "2.1.1"
|
||||
path_provider_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -616,6 +616,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.5"
|
||||
pointer_interceptor:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: pointer_interceptor
|
||||
sha256: "7626e034489820fd599380d2bb4d3f4a0a5e3529370b62bfce53ab736b91adb2"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.9.3+6"
|
||||
pointycastle:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -39,7 +39,8 @@ dependencies:
|
||||
internet_connection_checker: ^1.0.0+1
|
||||
package_info_plus: ^3.0.3
|
||||
particle_field: ^0.0.1
|
||||
path_provider: ^2.0.12
|
||||
path_provider: ^2.1.1
|
||||
pointer_interceptor: ^0.9.3+6
|
||||
provider: ^6.0.5
|
||||
rnd: ^0.2.0
|
||||
share_plus: ^6.3.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user