Flutter 对 Windows 不同版本的支持及 flutter_tts 兼容性指南
1. Windows 版本支持概述
Flutter 桌面应用支持多个 Windows 版本,包括 Windows 7、Windows 8、Windows 8.1、Windows 10 和 Windows 11。为了确保应用在这些不同版本的 Windows 上正常运行,需要进行相应的配置和兼容性处理。
1.1 支持配置
在项目中,我们已经通过修改/windows/runner/runner.exe.manifest文件添加了对所有目标 Windows 版本的支持标识:
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><!-- Windows 10 and Windows 11 --><supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/><!-- Windows 8.1 --><supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/><!-- Windows 8 --><supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d9d1c80f4}"/><!-- Windows 7 --><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/></application>
</compatibility>
同时,在 pubspec.yaml 文件中更新了最低支持的 Windows 版本描述:
# Windows 7 and 8 compatibility
# Minimum Windows version: Windows 7 (NT 6.1)
#