nq_media_player 1.0.1
nq_media_player: ^1.0.1 copied to clipboard
A flutter plugin that uses key commands to play and pause the music player of the mobile phone system and switch between the top and bottom songs.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add nq_media_playerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
nq_media_player: ^1.0.1Alternatively, 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:nq_media_player/nq_media_player.dart';