skip to Main Content

dears, I cloned a simple project from Git hub .
It shows me a tons of error such as Flatt button,
is there any solution to use and lunch this project in Vscode.? or I should renew each peace of code which is deprecated?
here is the example: git address:
(gh repo clone asjqkkkk/flutter-todos)

2

Answers


  1. If your flutter version is 3.x.x than FlatButton and RaisedButton are deprecated. You have to switch them with OutlinedButton. Here is well explained answer.

    Login or Signup to reply.
  2. 1.first clean your project using flutter clean.

    2.after that run flutter pub get.

    3.buid your app

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search