Skip to content

Commit

Permalink
flutter_native_timezone made release builds fail, migrated to flutter…
Browse files Browse the repository at this point in the history
…_timezone
  • Loading branch information
Christopher Wolf committed Sep 13, 2024
1 parent 7876962 commit 755ddfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/lib/presentation/event_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';

import 'package:device_calendar/device_calendar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_native_timezone/flutter_native_timezone.dart';
import 'package:flutter_timezone/flutter_timezone.dart';
import 'package:intl/intl.dart';

import 'recurring_event_dialog.dart';
Expand Down Expand Up @@ -313,7 +313,7 @@ class _EventItemState extends State<EventItem> {
void setCurentLocation() async {
String? timezone;
try {
timezone = await FlutterNativeTimezone.getLocalTimezone();
timezone = await FlutterTimezone.getLocalTimezone();
} catch (e) {
debugPrint('Could not get the local timezone');
}
Expand Down
4 changes: 2 additions & 2 deletions example/lib/presentation/pages/calendar_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:collection/collection.dart';
import 'package:device_calendar/device_calendar.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_native_timezone/flutter_native_timezone.dart';
import 'package:flutter_timezone/flutter_timezone.dart';
import 'package:intl/intl.dart';

import '../color_picker_dialog.dart';
Expand Down Expand Up @@ -73,7 +73,7 @@ class _CalendarEventPageState extends State<CalendarEventPage> {

void getCurentLocation() async {
try {
_timezone = await FlutterNativeTimezone.getLocalTimezone();
_timezone = await FlutterTimezone.getLocalTimezone();
} catch (e) {
debugPrint('Could not get the local timezone');
}
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
sdk: flutter
intl: ^0.17.0
uuid: ^3.0.6
flutter_native_timezone: ^2.0.0
flutter_timezone: ^3.0.1
device_calendar:
path: ../

Expand Down

0 comments on commit 755ddfa

Please sign in to comment.