Search
[Flutter/dart]The getter 'body1' isn't defined for the class 'TextTheme'
- M.R

- Oct 10, 2021
- 1 min read
Phenomenon
I got a title error after updating flutter to 2.5.1.
According to the error log, the cause seems to be charts-flutter.
Cause and Solution
With the version upgrade of flutter, some duplicated ones became an error.
It seems that charts-flutter doesn't support it.
When I looked at the github page, the following was described as a provisional response.
charts_flutter: ^0.11.0to
charts_flutter:
git:
url: https://github.com/google/charts.git
path: charts_flutterWith this I can build without error.
Lastly
It seems that charts-flutter hasn't been maintained and updated recently, so I have to think about adopting it in new apps ...






Comments