flutter_timezone_plus 1.1.0 flutter_timezone_plus: ^1.1.0 copied to clipboard
A fork of https://pub.dev/packages/flutter_timezone works on windows and linux
flutter_timezone_plus #
A fork of flutter_timezone works on windows and linux
Usage examples #
Get the timezone #
Current timezone:
// Returns null if timezone not found on windows or linux.
final String? currentTimeZone = await FlutterTimezone.getLocalTimezone();
All available timezones:
final List<String> availableTimezones = await FlutterTimezone.getAvailableTimezones();
Reference #
Wikipedia's list of TZ database names