FLUTTER ECOSYSTEM

tjarvstrand/flutter_timezone

https://github.com/pinkfish/flutter_native_timezone 的一个分支

flutter_timezone 项目封面
Stars
62
Forks
65
最近推送(UTC)
2026年5月28日
项目状态
未归档
Thomas Järvstrand GitHub avatar
GITHUB User

Thomas Järvstrand ↗

Stockholm, Sweden
语言C++CMakeDartSwiftRubyKotlinObjective-CCHTMLPowerShellShell

此仓库发布的插件

使用的依赖

依赖清单 7 项
  • equatable^2.0.7
  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • meta^1.16.0
  • flutter_lints开发依赖^6.0.0
  • flutter_test开发依赖{"sdk":"flutter"}
  • wolverinebeach_lints开发依赖{"git":{"url":"git@github.com:tjarvstrand/wolverinebeach_dart_util.git","ref":"main","path":"packages/wolverinebeach_lints"}}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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