win32_browser_detect 0.2.1 copy "win32_browser_detect: ^0.2.1" to clipboard
win32_browser_detect: ^0.2.1 copied to clipboard

This package detects the Windows default browser and returns the path to the exe.

example/main.dart

import 'package:win32_browser_detect/win32_browser_detect.dart';

void main() {
  print("Default Browser:");
  var detect = BrowserDetect();
  print("Browser: ${detect.getDefaultBrowser()}");
  print("Path: ${detect.getDefaultBrowserPath()}");

  print("");
  print("Installed Browsers:");
  List<Browser> browsers = detect.getInstalledBrowsers();
  for (var browser in browsers) {
    print("hive: ${browser.hive}");
    print("keyName: ${browser.keyName}");
    print("applicationName: ${browser.applicationName}");
    print("command: ${browser.command}");
    print("");
  }
}
4
likes
150
pub points
0%
popularity

Publisher

verified publisherjhanley.com

This package detects the Windows default browser and returns the path to the exe.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

intl, io, win32_registry

More

Packages that depend on win32_browser_detect