Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] There's an error with the library after making flutter upgrade #236

Closed
gabxap opened this issue May 30, 2020 · 11 comments
Closed

[BUG] There's an error with the library after making flutter upgrade #236

gabxap opened this issue May 30, 2020 · 11 comments
Assignees
Labels
question Further information is requested

Comments

@gabxap
Copy link

gabxap commented May 30, 2020

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



@gabxap gabxap added the bug Something isn't working label May 30, 2020
@gabxap gabxap changed the title [BUG] Don't upgrade flutter there's an error with the player [BUG] There's an error with the library after making flutter upgrade May 30, 2020
@aidanm1999
Copy link

I have an issue with this too but flutter downgrade did not seem to work.

@AbdulRMohsen
Copy link

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.
82036627-bf8f1780-96be-11ea-8269-457fab376ad6

@AbdulRMohsen
Copy link

I downgraded to a previous version on the master branch of flutter and it worked.

@sarbagyastha
Copy link
Owner

@sarbagyastha sarbagyastha added question Further information is requested and removed bug Something isn't working labels May 31, 2020
@sarbagyastha
Copy link
Owner

Added import for rendering.dart as a workaround for now in v7.0.0

@m-jabrane
Copy link

I got the same here, after upgrading to the latest version. I took downgrading as a workaround for now!

@sarbagyastha
Copy link
Owner

@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 ?

@m-jabrane
Copy link

@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.

@sarbagyastha
Copy link
Owner

@m-jabrane But v7.0.0 should have no issues with latest master/dev as i have tested on both.

@AbdulRMohsen
Copy link

There are several packages that have this Overflow issue, not just the youtube_player_flutter package.

@sarbagyastha
Copy link
Owner

@amohsen1001 But is it still breaking for youtube_player_flutter ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants