Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the app #8

Closed
imranissufo opened this issue Sep 15, 2021 · 1 comment
Closed

Error while running the app #8

imranissufo opened this issue Sep 15, 2021 · 1 comment

Comments

@imranissufo
Copy link

imranissufo commented Sep 15, 2021

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!

@imranissufo
Copy link
Author

imranissufo commented Sep 15, 2021

replaced the dependency

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant