timy-messenger
timy-messenger copied to clipboard
Error: The getter 'fullObstruction' isn't defined for the class 'ObstructingPreferredSizeWidget
Some issue with flutter_platform_widget I guess. I tried to upgrade the package still some other error get triggerred
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
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:processDebugGoogleServices'.
Missing project_info object
- Try:
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
I think it's because of the upgraded flutter version. 1.10.5 works for me.
@bd16s is right. The latest flutter version has some breaking changes.
If anyone wants to provide a fix, we will be happy to merge it.
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
...
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.