After making flutter upgrade to update to the latest version of the flutter sdk, I realized that youtube_player_flutter didn't allow me to create a successful build. I had to use flutter downgrade to went back to the latest version to solve the issue. I just want to show you this bug so that it can be solved in order to work with the latest version of flutter.
Gabriels-MacBook-Pro:lyric_hero jumpbotron$ flutter run -d ba2b9fba2ef7
Running "flutter pub get" in lyric_hero... 2.8s
Launching lib/main.dart on Mi A3 in debug mode...
Compiler message:
../../installations/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_fl
utter-6.1.1/lib/src/player/youtube_player.dart:334:19: Error: The getter
'Overflow' isn't defined for the class '_YoutubePlayerState'.
- '_YoutubePlayerState' is from
'package:youtube_player_flutter/src/player/youtube_player.dart'
('../../installations/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player
_flutter-6.1.1/lib/src/player/youtube_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter
or field named 'Overflow'.
overflow: Overflow.visible,
^^^^^^^^
Compiler message:
../../installations/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_flutter-6.1.1/lib/src/player/youtube_player.dart:334:19: Error: The getter 'Overflow' isn't defined for the class '_YoutubePlayerState'.
- '_YoutubePlayerState' is from 'package:youtube_player_flutter/src/player/youtube_player.dart' ('../../installations/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_flutter-6.1.1/lib/src/player/youtube_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Overflow'.
overflow: Overflow.visible,
^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script '/Users/jumpbotron/Documents/programming/installations/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/jumpbotron/Documents/programming/installations/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 17s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 17.7s
Exception: Gradle task assembleDebug failed with exit code 1
I have an issue with this too but flutter downgrade did not seem to work.
After running a flutter upgrade, the Stack overflow property Stack( overflow: Overflow.visible ), was moved to flutter/rendering.dart package. Thus all the libraries that have a Stack overflow property give this error on build run [The getter 'Overflow' isn't defined for the class..] because they are not importing the import 'package:flutter/rendering.dart'; yet.
I can see there is no solution for this till now, as it is so fresh.
Moreover, I had another issue after upgrading, the "Show Version Icon" in pubspec.yaml disappeared in vscode. It was so handy that a dependency like:
http: ^0.12.0+4
Appears as:
Latest: ↑0.12.0+4 | Search http in Dart Packages
http: ^0.12.0+4
Donno how to restore such feature.

I downgraded to a previous version on the master branch of flutter and it worked.
Added import for rendering.dart as a workaround for now in v7.0.0
I got the same here, after upgrading to the latest version. I took downgrading as a workaround for now!
@m-jabrane are you talking about latest version of flutter or youtube_player_flutter ? Did the issue Overflow doesn't exist occur in v7.0.0 too for you ?
@sarbagyastha I'm talking about upgrading to the latest version of flutter. As for now they moved the Overflow.visible to a new package, I'm downgrading the version of flutter until it's fixed.
@m-jabrane But v7.0.0 should have no issues with latest master/dev as i have tested on both.
There are several packages that have this Overflow issue, not just the youtube_player_flutter package.
@amohsen1001 But is it still breaking for youtube_player_flutter ?