Getting Started

Getting Started

Add tempo to your project by running

dart pub add tempo

Then import the package:

import 'packages:tempo/tempo.dart';

Optional, but recommended: The time zone defaults to “UTC”. Change it by setting defaultZoneId. If your project uses Flutter, use the flutter_timezone package to get a better default:

import 'package:flutter_timezone/flutter_timezone.dart';

defaultZoneId = (await FlutterTimeZone.getLocalTimeZone()).identifier;

Now continue on to the package overview, or dive straight into the api documentation, and write something of your own.