Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Package
youtube_player_iframe (Default)
What happened?
I upgrade the package from youtube_player_flutter: ^8.1.2 to youtube_player_flutter: ^9.0.3
- Fixed issue: Unknown feature SUPPRESS_ERROR_PAGE with Android issue: Unknown feature SUPPRESS_ERROR_PAGE, webview not displaying at all pichillilorenzo/flutter_inappwebview#2150
- Unresolved issue is: Unable to pop router 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 5273 pos 12: '!_debugLocked': is not true. When I use Navigator.of(context).pop() on a view with YoutubePlayer.
Thank you in advance
What is the expected behaviour?
Navigator close correctly
How to reproduce?
WidgetsBinding.instance.addPostFrameCallback((_) {
final router = GoRouter.of(context); // or Navigator.of(context)
if (router.canPop()) {
try {
router.pop();
} catch (e) {
Logger('AppMainBar').severe('Unable to pop router $e');
}
} else {
router.goNamed(HomePage.name);
}
});
Flutter Doctor Output
C:\sources\fitmetrics\fitmetrics_app> flutter doctor -v
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [version 10.0.22631.4037], locale fr-CH)
• Flutter version 3.22.1 on channel stable at C:\flutter\flutter_windows_3.22.0-stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision a14f74ff3a (3 months ago), 2024-05-22 11:08:21 -0500
• Engine revision 55eae6864b
• Dart version 3.4.1
• DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\fabrr\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.10.34916.146
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2023.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
[√] VS Code (version 1.92.2)
• VS Code at C:\Users\fabrr\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.94.0
[√] Connected device (4 available)
• SM A346B (mobile) • RFCWA0KWGSN • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.22631.4037]
• Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.120
• Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.42
[√] Network resources
• All expected network resources are available.
• No issues found!
Metadata
Assignees
Labels
No labels