From 23e440246481592bb4b698382ee1814beb8f69de Mon Sep 17 00:00:00 2001 From: Luk Schwalb Date: Thu, 25 Apr 2024 19:17:32 +0200 Subject: [PATCH] Switch to flutter_timezone --- lib/timezone_dropdown.dart | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/timezone_dropdown.dart b/lib/timezone_dropdown.dart index ec55a5e..18729b7 100644 --- a/lib/timezone_dropdown.dart +++ b/lib/timezone_dropdown.dart @@ -2,7 +2,7 @@ library timezone_dropdown; import 'package:dropdown_search/dropdown_search.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_native_timezone/flutter_native_timezone.dart'; +import 'package:flutter_timezone/flutter_timezone.dart'; import 'package:timezone/timezone.dart' as tz; import 'package:timezone/data/latest.dart' as tz; @@ -37,7 +37,7 @@ class TimezoneDropdownState extends State { } void loadTimeZones() async { - myTz = await FlutterNativeTimezone.getLocalTimezone(); + myTz = await FlutterTimezone.getLocalTimezone(); widget.onTimezoneSelected(myTz!); diff --git a/pubspec.yaml b/pubspec.yaml index 077810f..307569c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: dropdown_search: ^5.0.6 flutter: sdk: flutter - flutter_native_timezone: ^2.0.0 + flutter_timezone: ^1.0.8 timezone: ^0.9.2 dev_dependencies: