flutter_device_friendly_name 0.1.0

Flutter Android iOS

Retrieve a friendly name for the current device.

flutter_device_friendly_name #

Retrieve a device's friendly name, such as "Bob's iPhone" or "Galaxy S9 (Sarah)".

Usage #

  1. Add flutter_device_friendly_name to your dependencies in pubspec.yaml
  2. Import via import 'package:flutter_device_friendly_name/flutter_device_friendly_name.dart';
  3. Accessing FlutterDeviceFriendlyName.friendlyName returns a Future that resolves to your device name. This name might be empty, so be sure to have a fallback just in case.

See the example\lib\main.dart for sample code.

1
likes
80
pub points
72%
popularity

Retrieve a friendly name for the current device.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

support@appho.st

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_device_friendly_name