Search packages, repositories and app categories

Package detailsv2.0.0

flutter_native_timezone

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

30-day downloads
12.8K
Likes
259
Pub points
70

Install package

flutter pub add flutter_native_timezone

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 information directly from the operating system. It provides accurate and up-to-date timezone data without relying on hardcoded values or manual configuration. This is particularly useful for applications requiring time zone-aware functionality, such as scheduling, calendar apps, or location-based services. The plugin works across platforms by leveraging native OS APIs to ensure consistency and reliability.

Use cases

  • Scheduling events based on user's local time
  • Displaying timestamps in user's timezone
  • Building location-aware applications
  • Syncing time-sensitive data across regions
  • Implementing time zone detection in global apps

Key features

  • Accesses native OS timezone
  • Returns accurate timezone identifiers
  • Cross-platform support
  • Simple API with minimal setup
  • No need for manual timezone configuration

Suitable for

  • Apps needing precise timezone handling
  • Global or multi-region applications
  • Time-sensitive features like reminders
  • Developers seeking reliable native integration

Considerations

  • Requires platform-specific permissions on some systems
  • May not update dynamically during runtime
  • Limited to timezone retrieval, not manipulation
  • Depends on OS-level timezone settings
  • Not suitable for complex time zone calculations

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