x_user_agent 1.0.0+1
x_user_agent: ^1.0.0+1 copied to clipboard
Flutter plugin for reading WebView and system user-agent data on Android and iOS, plus structured device metadata for client hint use cases.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add x_user_agentThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
x_user_agent: ^1.0.0+1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:x_user_agent/x_user_agent.dart';