Home > Net >  can you help me ? I don't understand why Gradle gives me this error
can you help me ? I don't understand why Gradle gives me this error

Time:01-17

can you help me ? I don't understand why Gradle gives me this error

this is what it shows me

CodePudding user response:

it says that the compiler cannot find FlatButton and RaisedButton maybe you forgot to import them.

CodePudding user response:

The FlatButton, RaisedButton and OutlineButton widgets have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively. you can read the details enter image description here

CodePudding user response:

Instead of FlatButton you can use TextButton.

FlatButton is removed in newer Flutter versions.

Read this part in the official documentation for more info,

https://docs.flutter.dev/release/breaking-changes/buttons#context

  • Related