Santos-Enoque / flutter-web-dashboard-template

270 stars 203 forks source link

error to run code with debug #6

Open lethemagicbegin opened 3 years ago

lethemagicbegin commented 3 years ago

hi, i have this error whene i run the program...what can i do?

` ^^^^^ color ??= Theme.of(context).textTheme.body1!.color; Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.

Failed to compile application. `

isoneday commented 3 years ago

change dependecies charts_flutter to

dependency_overrides: charts_flutter: git: url: https://github.com/google/charts path: charts_flutter

imranissufo commented 3 years ago

Applied this solution and it was solved, thanks

dependencies:
  //charts_flutter: ^0.10.0 -removed this line
  //added the following
  charts_flutter:
    git:
      url: https://github.com/google/charts
      path: charts_flutter