my_timezone 0.0.1+4
my_timezone: ^0.0.1+4 copied to clipboard
A flutter plugin for getting the local timezone of the device on Android, ios, macos.
My Timezone #
A flutter plugin for getting the local timezone of the Ios, Macos and Android.
Installation #
Add following dependency in pubspec.yaml file:
my_timezone: ^last_version
Then, run
$ flutter pub get
Features #
- ✅ iOS Support
- ✅ Android Support
Usage #
Get the timezone
import 'package:my_timezone/my_timezone.dart';
final String currentTimeZone = await MyTimezone.getLocalTimezone();
final List<String> availableTimezones = await MyTimezone.getAvailableTimezones();