web_browser_detect 1.0.3 icon indicating copy to clipboard operation
web_browser_detect: ^1.0.3 copied to clipboard

Flutter Web browser detection package. This package allows you to detect which browser and its version is in use.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:web_browser_detect/web_browser_detect.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    final browser = Browser();

    return MaterialApp(
      title: 'web_browser_detect Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Material(
        child: Column(
          mainAxisSize: MainAxisSize.max,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text('The browser is ${browser.browser}'),
            Text('Browser version is ${browser.version}'),
          ],
        ),
      ),
    );
  }
}
9
likes
80
pub points
92%
popularity

Publisher

verified publisher icontomas-chyly.com

Flutter Web browser detection package. This package allows you to detect which browser and its version is in use.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, universal_html

More

Packages that depend on web_browser_detect