audioplayers_windows
The Windows implementation of audioplayers.
Usage
This package is endorsed,
which means you can simply use audioplayers normally.
This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.
Setup for Windows
Flutter
Please follow the Flutter guide to set up Flutter on Windows.
Requirements
With Visual Studio 18 (2026), Audioplayers is depending on libraries, which require CMP0091 NEW policy.
Therefore, we recommend changing your windows/CMakeLists.txt as follows:
-cmake_minimum_required(VERSION 3.14)
+cmake_minimum_required(VERSION 3.15)
# ...
-cmake_policy(VERSION 3.14...3.25)
+cmake_policy(VERSION 3.15...3.25)
Alternatively apply the CMP0091 policy before the first occurrence of project():
+cmake_policy(SET CMP0091 NEW)
project(my_project_name LANGUAGES CXX)
Optional
Optionally you can add the individual component NuGet package manager inside Visual Studio or Visual Studio Build Tools, otherwise it will be downloaded while building.