Gautam Govind
Gautam Govind

Reputation: 27

I am not even using FlatButton or RaisedButton but i am getting these errors. I have searched my whole project. Also can't understand below errors too

/C:/Users/Dell/AppData/Local/Pub/Cache/hosted/pub.dev/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'.

FAILURE: Build failed with an exception.

Process 'command 'D:\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

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.

BUILD FAILED in 25s Exception: Gradle task assembleDebug failed with exit code 1

can't get rid of these errors. Someone please help me with this.

Upvotes: 0

Views: 161

Answers (2)

  • These errors are coming from flutter_platform_widgets.

  • The ultimate solution will be updating this plugin to its latest version

Happy Coding 🎉

Upvotes: 0

Arun R. Prajapati
Arun R. Prajapati

Reputation: 2802

it seems the plugin using the FlatButton,

try updating the plugin to the latest

agora_uikit: ^1.3.3


flutter_platform_widgets: ^3.3.5

OR

flutter_platform_widgets: ^4.0.0-beta.1

Upvotes: 0

Related Questions