LineChartBarData loading data crash #1536
Unanswered
zhangyakai
asked this question in
Q&A
Replies: 1 comment
-
|
Please add reproducible code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Crash occurs when the following data is first loaded:
List? datas;
List spots = [];
for (int i = 0; i < datas!.length; i++) {
spots.add(datas![i]);
}
LineChartBarData(
spots: datas!,
shadow: const Shadow(color: CMColor.blueColor),
isCurved: true,
gradient: getGradient2(CMColor.blueColor, const Color(0xFF5076AD)),
barWidth: 3,
isStrokeCapRound: true,
dotData: const FlDotData(
show: false,
),
belowBarData: BarAreaData(
show: true,
gradient: getGradient2(CMColor.blueColor.withOpacity(0.3),
const Color(0xFF5076AD).withOpacity(0.3))
),
);
The data was passed in by me using the provider's data.
Crash exception:
frame #0: 0x00000001089f48e0 Flutter
impeller::ContentsFilterInput::GetCoverage(impeller::Entity const&) const + 4 Flutterimpeller::ContentsFilterInput::GetCoverage:-> 0x1089f48e0 <+4>: ldr x9, [x0]
0x1089f48e4 <+8>: ldr x2, [x9, #0x18]
0x1089f48e8 <+12>: br x2
Flutter`impeller::FilterContentsFilterInput::~FilterContentsFilterInput:
0x1089f48ec <+0>: stp x20, x19, [sp, #-0x20]!
Target 0: (Runner) stopped.
I want to know why this is? How should I solve it?
Beta Was this translation helpful? Give feedback.
All reactions