I'm getting following error when running command "flutter run -d chrome --web-renderer html"
Launching lib\main.dart on Chrome in debug mode...
/C:/Users/wavei/AppData/Local/Pub/Cache/hosted/pub.dev/youtube_player_iframe-5.1.5/lib/src/widgets/fullscreen_youtube_player.dart:119:7: Error: No named parameter with the name 'onPopInvokedWithResult'.
onPopInvokedWithResult: (didPop, _) {
^^^^^^^^^^^^^^^^^^^^^^
/F:/flutter/packages/flutter/lib/src/widgets/pop_scope.dart:55:9: Context: Found this candidate, but the arguments don't match.
const PopScope({
^^^^^^^^
/C:/Users/wavei/AppData/Local/Pub/Cache/hosted/pub.dev/youtube_player_iframe-5.1.5/lib/src/widgets/youtube_player_scaffold.dart:206:7: Error: No named parameter with the name 'onPopInvokedWithResult'.
onPopInvokedWithResult: _handleFullScreenBackAction,
^^^^^^^^^^^^^^^^^^^^^^
/F:/flutter/packages/flutter/lib/src/widgets/pop_scope.dart:55:9: Context: Found this candidate, but the arguments don't match.
const PopScope({
^^^^^^^^
Waiting for connection from debug service on Chrome... 56.0s
Failed to compile application.
Good Morning,
There are some Flutter version ussue.. please use flutter version 3.22.0 , To run following command to check flutter version
flutter --version
Regards,
Mr. Chirag