SyncfusionExamples / how-to-create-a-real-time-flutter-chart-in-10-minutes

Create a real time flutter chart in 10 minutes | Syncfusion Flutter
https://flutter.syncfusion.com/
6 stars 7 forks source link

Error during compile #2

Open aschershapiro opened 2 weeks ago

aschershapiro commented 2 weeks ago

hi, when I try to build this project I get the following error:

syncfusion_flutter_core-19.4.56/lib/src/legend/legend.dart:838:40: Error: The getter 'caption' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/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 'caption'.
      _textStyle = themeData.textTheme.caption!

[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.4037], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.5) [√] Android Studio (version 2022.3) [√] VS Code (version 1.92.1) [√] Connected device (3 available) [√] Network resources

mayank-pahuja commented 2 weeks ago

t looks like the caption property in TextTheme has been replaced with bodySmall in the latest Flutter version. I can update the code accordingly and test it...