You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WKS-101+Hp@WKS-101 MINGW64 /e/works/flutter/flutter-web-dashboard-template (main)
$ flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.10.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter 'body1' isn't defined for the class
'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
color ??= Theme.of(context).textTheme.body1.color;
^^^^^
Waiting for connection from debug service on Chrome... 19.6s
Failed to compile application.
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19042.1165], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] VS Code, 64-bit edition (version 1.60.0)
[√] Connected device (2 available)
• No issues found!
The text was updated successfully, but these errors were encountered:
dependencies:
//charts_flutter: ^0.10.0 -removed this line
//added the following
charts_flutter:
git:
url: https://github.com/google/charts
path: charts_flutter
WKS-101+Hp@WKS-101 MINGW64 /e/works/flutter/flutter-web-dashboard-template (main)
$ flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.10.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter 'body1' isn't defined for the class
'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
color ??= Theme.of(context).textTheme.body1.color;
^^^^^
Waiting for connection from debug service on Chrome... 19.6s
Failed to compile application.
• No issues found!
The text was updated successfully, but these errors were encountered: