flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Minified FirebaseFirestore datatypes (Map, List, etc.) in release mode (Flutter Web)

Open Nico1911 opened this issue 1 year ago • 0 comments

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!

292258377-f1047a52-fe04-4d7c-9770-fbeb394a989a

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

Nico1911 avatar Dec 28 '23 08:12 Nico1911