Open nikto-b opened 1 year ago
Just to confirm, this doesn't happen on debug, correct?
Does it happen when you remove the dart2js optimization?
Does it happen with other levels of optimization?
I don't fully know what dart2js-optimization
does, but I suspect that what is happening is that DeviceInfoPlusPlugin
class from device_info_plus_web.dart
gets lost during the optimization.
Just to confirm, this doesn't happen on debug, correct?
Does it happen when you remove the dart2js optimization?
Does it happen with other levels of optimization?
I don't fully know what
dart2js-optimization
does, but I suspect that what is happening is thatDeviceInfoPlusPlugin
class fromdevice_info_plus_web.dart
gets lost during the optimization.
AFAIK, dart2js optimizations can cut off some parts of generated JS code, this can cause problems with DI (google_maps_flutter was optimized-out in release builds for android about year ago, for example)
Thanks for the info! Just in case, the issue you mention is about Java Proguard optimizations on Android, not the dart2js optimization.
Facing the same issue. Can't access the browser info in release mode but can in debug mode.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
Facing the same issue. No flags. Just with flutter build web --release
Platform
Web
Plugin
device_info_plus
Version
4.0.1
Flutter SDK
3.1.0-9.0.pre
Steps to reproduce
webBrowserInfo
getter in any wayUnimplementedError
UnimplementedError: webBrowserInfo() has not been implemented.
Code Sample
No response
Logs