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

Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget #33

Open
manangupta657 opened this issue Dec 24, 2019 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@manangupta657
Copy link

Some issue with flutter_platform_widget I guess.
I tried to upgrade the package still some other error get triggerred

@manangupta657
Copy link
Author

Compiler message:
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.20.2/lib/src/platform_scaffold.dart:229:38: Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget'.

  • 'ObstructingPreferredSizeWidget' is from 'package:flutter/src/cupertino/page_scaffold.dart' ('../../flutter/packages/flutter/lib/src/cupertino/page_scaffold.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'fullObstruction'.
    final obstruct = navigationBar.fullObstruction == null ||
    ^^^^^^^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.20.2/lib/src/platform_scaffold.dart:230:25: Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget'.
  • 'ObstructingPreferredSizeWidget' is from 'package:flutter/src/cupertino/page_scaffold.dart' ('../../flutter/packages/flutter/lib/src/cupertino/page_scaffold.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'fullObstruction'.
    navigationBar.fullObstruction;
    ^^^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\Users\vipul\Desktop\manan\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\Users\vipul\Desktop\manan\flutter\bin\flutter.bat'' finished with non-zero exit value 1

@manangupta657
Copy link
Author

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugGoogleServices'.

Missing project_info object

  • Try:

@amn-mgs
Copy link

amn-mgs commented Dec 27, 2019

I had the same problem. any help?

registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Compiler message:
/C:/Flutter%20SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.20.2/lib/src/platform_scaffold.dart:229:38: Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget'.

  • 'ObstructingPreferredSizeWidget' is from 'package:flutter/src/cupertino/page_scaffold.dart' ('/C:/Flutter%20SDK/flutter/packages/flutter/lib/src/cupertino/page_scaffold.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'fullObstruction'.
    final obstruct = navigationBar.fullObstruction == null ||
    ^^^^^^^^^^^^^^^
    /C:/Flutter%20SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.20.2/lib/src/platform_scaffold.dart:230:25: Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget'.
  • 'ObstructingPreferredSizeWidget' is from 'package:flutter/src/cupertino/page_scaffold.dart' ('/C:/Flutter%20SDK/flutter/packages/flutter/lib/src/cupertino/page_scaffold.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'fullObstruction'.
    navigationBar.fullObstruction;
    ^^^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\Flutter SDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\Flutter SDK\flutter\bin\flutter.bat'' 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 1m 51s
Finished with error: Gradle task assembleDebug failed with exit code 1

@bd16s
Copy link

bd16s commented Dec 30, 2019

I think it's because of the upgraded flutter version. 1.10.5 works for me.

@ThuAbLKA
Copy link

@bd16s is right. The latest flutter version has some breaking changes.

@miquelbeltran
Copy link
Collaborator

If anyone wants to provide a fix, we will be happy to merge it.

@miquelbeltran miquelbeltran added the help wanted Extra attention is needed label Dec 30, 2019
@imdatceleste
Copy link

Changing flutter_platform_widgets-version to ^0.32.4 in pubspec.yaml resolves this issue because the developers of flutter_platform_widgets have fixed that already.

After that, you need to flutter packages upgrade...

@spookbite
Copy link

Try clicking on the link mentioned in the error "package:flutter/src/cupertino/page_scaffold.dart" or the other one mentioned in the error which would be a hyperlink and change 'fullObstruction' to 'shouldFullyObstruct'. I did it today and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants