-
Notifications
You must be signed in to change notification settings - Fork 172
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
not run #9
Comments
This is due to an oudated package using deprecated widgets.Reason of error :The issue is due to "enough_gify_flutter" package whose last update was 9 month before and is using deprecated widgets. this is because some widgets such as FlatButton, RaisedButton etc is now deprecated and replaced by ElevatedButton and ElevatedButton...
Solution :Just remove the 'enough_gify_flutter' package and its relevent code everywhere in the project and it will work perfectly. dear @RivaanRanawat kindly look into the matter and replace ''enough_gify_flutter'' package with other suitable package at pub.dev . @kapilsharma-gts hope it helps and if yes, then close the issue. Regards, |
i already fixed it the leg is not working |
you might not be able to remove the relevent part where this package using deprecated widgets in involved. hope this will work for you. |
Thanks |
C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart:267:14: Error: The method 'FlatButton' isn't defined for the class 'PlatformButton'.
package:flutter_platform_widgets/src/platform_button.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
return FlatButton(
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart:300:12: Error: The method 'RaisedButton' isn't defined for the class 'PlatformButton'.
package:flutter_platform_widgets/src/platform_button.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'RaisedButton'.
return RaisedButton(
^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_dialog_action.dart:171:14: Error: The method 'FlatButton' isn't defined for the class 'PlatformDialogAction'.
package:flutter_platform_widgets/src/platform_dialog_action.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
return FlatButton(
^^^^^^^^^^
3
FAILURE: Build failed with an exception.
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
Execution failed for task ':app:compileFlutterBuildDebug'.
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 6s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
The text was updated successfully, but these errors were encountered: