fl_chart
fl_chart copied to clipboard
[BUG]Web-side BarChart rendering exception On Release
The same code is rendered inconsistently in Release mode and Debug mode. And the Release mode rendering is wrong.
Exported by
flutter build web --release --web-renderer html
Release state with color rendering exception. The first item should be red, not green
Debug mode is displayed normally.
Normal condition: the first bar should be red
Minimal code package: icon_maker_web.zip
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-arm (Rosetta),
locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[!] Android Studio
✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
[✓] VS Code (version 1.67.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
It works well with flutter run -d chrome --release
![](https://user-images.githubusercontent.com/7009300/170234360-3200bd4f-d32a-4061-9dc8-eb6dd7b6072a.png)
It works well with
flutter run -d chrome --release
![]()
Forgot to mention flutter build web --release --web-renderer html
Oh, I see. That's very, very weird.
Oh, I see. That's very, very weird.
If there is any solution that can be bypassed, or temporarily solved, please let me know, thank you very much.
Currently it has been found that reducing the data source to less than one screen does not cause problems. As soon as the number of X-axes exceeds the number that can be displayed on one screen, the problem occurs.
Oh, I see. That's very, very weird.
If there is any solution that can be bypassed, or temporarily solved, please let me know, thank you very much.
Actually, I don't have any idea about it. It seems a Flutter engine issue.
Can anybody please confirm that this issue still exists or not?
This problem still exists, even extended to Debug mode (chrome) (flutter 3.7.12 stable fl_chart 0.62.0) Dragging the window to the full display table X-axis will fix it automatically
Can you give me a simple reproducible code? (a main.dart file content)
Does this issue still exist?