[BUG]Web-side BarChart rendering exception On Release
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
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](https://github.com/imaNNeoFighT/fl_chart/files/8769786/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
```
Contributor guide
Research direction
Start by unpacking the attached minimal code package and reproducing the issue with `flutter build web --release --web-renderer html`, then compare it with Debug mode. Trace the BarChart color rendering from that reproduction. Done means the first bar renders red in the Release web build, matching the expected condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100