fk_user_agent
2.1.0, released 5 years ago by toutao.cloud
Retrieve Android and iOS device user agents and related constants in Flutter.
What it does
Allows Flutter applications to retrieve standard device user agents, WebView user agents, and various system constants for Android and iOS. It helps in constructing custom user agents or identifying the client platform details.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to fetch the native device user agent or WebView user agent.
- You require additional system and application constants for custom user-agent building on Android or iOS.
Skip it when
- You are targeting platforms other than Android and iOS.
- You do not need user agent information.
Strengths
- Provides both system and WebView user agents for Android and iOS.
- Returns additional useful constants for custom user-agent building.
Weaknesses
- Limited to Android and iOS platforms.
- Documentation does not mention support for desktop or web platforms.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Not documented
await FkUserAgent.init();
print(FkUserAgent.userAgent);
print(FkUserAgent.webViewUserAgent);Alternatives
Packages that do the same job and could replace fk_user_agent.
- ua_client_hints
Provide User-Agent Client Hints to Flutter for Android, iOS, macOS, and Web.
78Compare - display_metrics
Retrieve physical display size, resolution, and PPI, and convert inches and mm to logical pixels.
78Compare - contacts_service_plus
Retrieve and manage device contacts on Android and iOS devices.
64Compare - device_meta
Provides unified access to device model, brand, manufacturer, UUID, OS version and user‑agent with optional persistent metadata.
61Compare