flutter / flutter/flutter-intellij
Minified FirebaseFirestore datatypes (Map, List, etc.) in release mode (Flutter Web)
- Dominant language
- Java
- Stars
- 2k
- Forks
- 356
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 27
Description
Every Firestore data I got in my flutter web (as e.g. in the stream below) were minified in release mode. In detail the runtimeTypes Map, List and Timestamp become "minified:...". In reference to the example below: Already the values of the DocumentSnapshot fields of snapshot.data are minified. I don't get any errors or special log output.
I wish I knew exactly how this error came about. It occurs as soon as I simulate the website in release mode or publish it.
I´ve the newest Version of flutter, dart and android studio. My temporary workaround is to launch the website with:
flutter build web --profile --dart-define=Dart2jsOptimization=O0 --no-tree-shake-icons
but of course this is neither a solution to the problem nor a permanent method.
Thank you very much for your comments!
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.4, on macOS 14.1.2 23B92 darwin-x64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] Connected device (3 available)
[✓] Network resources
Contributor guide
Assessment
This issue has not been assessed yet.