Skip to content

Commit

Permalink
flutter_timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Sep 17, 2023
1 parent e57894d commit 4cb3788
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 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) {
print('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 '../date_time_picker.dart';
Expand Down Expand Up @@ -72,7 +72,7 @@ class _CalendarEventPageState extends State<CalendarEventPage> {

void getCurentLocation() async {
try {
_timezone = await FlutterNativeTimezone.getLocalTimezone();
_timezone = await FlutterTimezone.getLocalTimezone();
} catch (e) {
print('Could not get the local timezone');
}
Expand Down
11 changes: 5 additions & 6 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,33 @@ version: 3.2.0
publish_to: none

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
intl:
uuid:
flutter_timezone: ^1.0.7

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons:
device_calendar:
path: ../

dev_dependencies:
integration_test:
sdk: flutter
flutter_test:
sdk: flutter
test:

device_calendar:
path: ../
flutter_lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
Expand Down

0 comments on commit 4cb3788

Please sign in to comment.