Search packages, repositories and app categories

Package detailsv2.0.3

flutter_native_timezone_updated_gradle

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

30-day downloads
261
Likes
30
Pub points
70

Install package

flutter pub add flutter_native_timezone_updated_gradle

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that retrieves the device's local timezone, providing accurate time zone information for applications requiring precise date and time handling. It leverages native platform APIs to ensure reliability across iOS and Android. The package is designed for developers who need to display or process time data in the user's local context, such as scheduling, logging, or internationalization features. It supports both platforms and integrates seamlessly with existing Flutter projects.

Use cases

  • Displaying local time in apps
  • Time zone-aware scheduling
  • Internationalized date formatting
  • Logging events with local time
  • Syncing data based on user's time zone

Key features

  • Accesses native device timezone
  • Supports iOS and Android
  • Simple API for timezone retrieval
  • Accurate time zone detection
  • Easy integration with Flutter

Suitable for

  • Apps needing local time awareness
  • Global applications with time-sensitive features
  • Calendar and reminder apps
  • Data logging systems
  • Time zone conversion tools

Considerations

  • Requires platform-specific permissions
  • May return null if timezone is unavailable
  • Limited to device-level timezone detection
  • No support for custom time zones
  • Depends on correct device time settings

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_native_timezone

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

Getting Started

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

Features

  • [X] iOS Support
  • [X] Android Support

Usage examples

Get the timezone
final String currentTimeZone = await FlutterNativeTimezone.getLocalTimezone();

Categories

Dependencies

Dependency list 1 items

  • js>=0.6.3 <2.0.0

Source repository

Projects using this package

No data available yet.