Reputation: 27
/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.
Where: Script 'D:\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
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
Reputation: 1746
flutter_platform_widgets
.Upvotes: 0
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