Santos-Enoque / flutter-web-dashboard-template

270 stars 202 forks source link

Error while running the app #8

Closed imranissufo closed 3 years ago

imranissufo commented 3 years ago

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'.

$ 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 commented 3 years ago

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