Youtube_player_flutter: [BUG] No named parameter with the name 'overflow'.

Created on 18 Sep 2020  Â·  5Comments  Â·  Source: sarbagyastha/youtube_player_flutter

Describe the bug

/youtube_player_flutter-7.0.0+7/lib/src/player/youtube_player.dart(296,9): error GBF4691A2: No named parameter with the name 'overflow'.

https://github.com/sarbagyastha/youtube_player_flutter/blob/master/packages/youtube_player_flutter/lib/src/player/youtube_player.dart#L296

Technical Details:

  • Flutter Channel master, 1.22.0-10.0.pre.251

Additional context
Refer to the following issue: https://github.com/flutter/flutter/issues/66030

bug

Most helpful comment

You just need to change line 296 in Stack overflow: Overflow.visible to this:
clipBehavior: Clip.none,
I've had to do this annoying fix everywhere, having to change a dozen dependencies with that line. Simple enough fix at least for everyone on dev and master channels, should probably be updated for next release.

All 5 comments

I am getting the same after a Flutter upgrade:
/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_flutter-7.0.0+7/lib/src/player/youtube_player.dart:296:9: Error: No named
parameter with the name 'overflow'.
overflow: Overflow.visible,
^^^^^^^^
After Flutter was upgraded to this version, it started compiling with errors:
C:\development\cevents>flutter doctor -v
[√] Flutter (Channel master, 1.22.0-10.0.pre.221, on Microsoft Windows [Version 10.0.19041.508], locale en-US)
• Flutter version 1.22.0-10.0.pre.221 at C:\src\flutter\flutter
• Framework revision fa646339d6 (2 days ago), 2020-09-16 17:47:04 -0700
• Engine revision 933f811d94
• Dart version 2.10.0 (build 2.10.0-135.0.dev)

Same here after upgrade and reload

Performing hot reload...
Syncing files to device iPhone SE (2nd generation)...
../flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_flutter-7.0.0+7/lib/src/player/youtube_player.dart:296:9: Error: No named parameter with the name 'overflow'.
        overflow: Overflow.visible,
        ^^^^^^^^
../flutter/packages/flutter/lib/src/widgets/basic.dart:3273:3: Context: Found this candidate, but the arguments don't match.
  Stack({
  ^^^^^

flutter doctor
```
[✓] Flutter (Channel master, 1.22.0-10.0.pre.269, on Mac OS X 10.15.6 19G2021 x86_64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.2)
[✓] Connected device (1 available)

Same here: Flutter 1.22.0-10.0.pre.293 • channel master •

You just need to change line 296 in Stack overflow: Overflow.visible to this:
clipBehavior: Clip.none,
I've had to do this annoying fix everywhere, having to change a dozen dependencies with that line. Simple enough fix at least for everyone on dev and master channels, should probably be updated for next release.

Any updatee?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snoopdoggy322 picture snoopdoggy322  Â·  4Comments

mohadel92 picture mohadel92  Â·  3Comments

rebeccalee-ysd picture rebeccalee-ysd  Â·  3Comments

SayaGames picture SayaGames  Â·  3Comments

kyawsithu picture kyawsithu  Â·  4Comments