background_hiit_timer 1.2.2
background_hiit_timer: ^1.2.2 copied to clipboard
Flutter background timer package developed for HIIT timers. Designed to run in the background and play audio cues on Android and iOS.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add background_hiit_timer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
background_hiit_timer: ^1.2.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:background_hiit_timer/background_timer.dart';
import 'package:background_hiit_timer/background_timer_controller.dart';
import 'package:background_hiit_timer/models/interval_type.dart';
import 'package:background_hiit_timer/models/timer_state.dart';
import 'package:background_hiit_timer/utils/constants.dart';
import 'package:background_hiit_timer/utils/database.dart';
import 'package:background_hiit_timer/utils/lifecycle_event_handler.dart';
import 'package:background_hiit_timer/utils/log.dart';
import 'package:background_hiit_timer/utils/utils.dart';