device_time_format 0.0.1 copy "device_time_format: ^0.0.1" to clipboard
device_time_format: ^0.0.1 copied to clipboard

PlatformAndroid

A Flutter plugin to get the device's current time and detect whether the system uses 12-hour or 24-hour format.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add device_time_format

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  device_time_format: ^0.0.1

Alternatively, 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:device_time_format/device_time_format.dart';
4
likes
150
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to get the device's current time and detect whether the system uses 12-hour or 24-hour format.

Homepage

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_time_format

Packages that implement device_time_format