flutter_timezone 5.1.0 copy "flutter_timezone: ^5.1.0" to clipboard
flutter_timezone: ^5.1.0 copied to clipboard

A flutter plugin for getting the local timezone of the device.

flutter_timezone #

pub package Keep a Changelog v1.1.0

A flutter plugin for getting the local timezone of the OS.

This is a fork of the original flutter_native_timezone due to lack of maintenance of that package.

Getting Started #

Install this package and everything good will just follow along with you.

Usage examples #

Get the timezone #

final TimezoneInfo currentTimeZone = await FlutterTimezone.getLocalTimezone();

Localized timezone names #

On supported platforms Timezone info will contain the localized timezone name. Currently, this is supported on:

  • Android
  • MacOS
  • iOS

Reference #

Wikipedia's list of TZ database names

332
likes
160
points
615k
downloads

Documentation

API reference

Publisher

verified publisherwolverinebeach.net

Weekly Downloads

A flutter plugin for getting the local timezone of the device.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

equatable, flutter, flutter_web_plugins, meta

More

Packages that depend on flutter_timezone

Packages that implement flutter_timezone