[Flutter/dart]The getter 'body1' isn't defined for the class 'TextTheme'
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.0
to
charts_flutter:
git:
url: https://github.com/google/charts.git
path: charts_flutter
With 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 ...
Recent Posts
See AllWhat want to do I want to create an input form using TextField. For example, if the input content is a monetary amount, I would like to...
What want to do There is a variable that remain unchanged once the initial value is determined. However, it cannot be determined yet when...
What want to do As the title suggests. Place two widgets in one line on the screen One in the center of the screen and the other on the...
ความคิดเห็น