Search code examples
flutterflutter-web

Device/Browser Details when running Flutter Web


There is a package/plugin for Flutter Mobile (Android, iOS) for retrieving the device details, in which the the flutter application is running, device_info. What i need is a package/plugin to get the Details of the Device/Browser in which the Flutter Web application is running. If anyone can steer me in the right direction, that would be great.


Solution

  • Get current device information from within the Flutter application, and it works for WEB as well as desktop apps device_info_plus

    you can get following details of a browser 'browserName': describeEnum(data.browserName),

    More details are there in this example https://github.com/fluttercommunity/plus_plugins/blob/main/packages/device_info_plus/example/lib/main.dart#L138