Last updated:
0 purchases
flutter timezone plus
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();
copied to clipboard
All available timezones:
final List<String> availableTimezones = await FlutterTimezone.getAvailableTimezones();
copied to clipboard
Reference #
Wikipedia's list of TZ database names
Credits #
https://pub.dev/packages/flutter_timezone
https://github.com/tjarvstrand/flutter_timezone
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.