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
I'm trying to integrate inside my FlutterfFow project the fl_chart examples but it keeps failing with an error message related to the 'tooltipBgColor' (attached screenshot)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to integrate inside my FlutterfFow project the fl_chart examples but it keeps failing with an error message related to the 'tooltipBgColor' (attached screenshot)
I'm using the latest code taken from https://github.com/imaNNeo/fl_chart/
dependency: fl_chart: ^0.68.0
Also followed the instructions and examples inside https://pub.dev/packages/fl_chart
The steps I've taken:
1- Created a custom widget named FLChartBarWidget (same as the class name in my code).
2- Copied the code example of the bar chart taken from here:
https://github.com/imaNNeo/fl_chart/blob/main/example/lib/presentation/samples/bar/bar_chart_sample1.dart
3- The original code example contains 2 url links which failed to be compiled in FF:
import 'package:fl_chart_app/presentation/resources/app_resources.dart';
import 'package:fl_chart_app/util/extensions/color_extensions.dart';
So I've copied their content inside the bottom of my custom widget code (see below).
4- The code compiled successfully inside the custom code section
5- Integrated my FLChartBarWidget component inside one of my project pages and everything seemed to work properly (the Mingguan widget at the bottom):
6- Running the project in test or run mode crashes with the mentioned error message (attached)
What have you tried so far?
1- I've opened the developer tools in my browser to see if I can get more information but this did'nt really help
2- I've tried running with both local FF mac desktop app and FF web app
3- Running it as a clean Flutter code in Android Studio is working fine,, the problem is only with FF.
I've noticed that FF is not using the latest Flutter and Dart SDKs.
Maybe this would be the reason for this?
I also couldn't find a way to force FF using the latest. Is it possible?
The following is the code I'm using for my custom widget:
Beta Was this translation helpful? Give feedback.
All reactions