audio_service 0.18.13
audio_service: ^0.18.13 copied to clipboard
Flutter plugin to play audio in the background while the screen is off.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add audio_serviceWith Flutter:
$ flutter pub add audio_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
audio_service: ^0.18.13Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:audio_service/audio_service.dart';