音乐播放器

描述
该存储库是音乐播放器的源代码,使用 dart 语言在 flutter 框架上构建,并使用了 itunes 的 API。
设备要求
- 操作系统:Windows
- Flutter:2.10.2
- Dart:2.16.1
- 移动设备:Vivo V11 Pro
- 移动操作系统:Android
- Android 版本:10
支持的功能
- 热门艺术家
- 搜索音乐
- 保存热门艺术家的音乐
- 保存搜索到的音乐
- 按艺术家播放音乐
- 按搜索结果播放音乐
- 按库播放音乐
- 暂停音乐
- 恢复音乐
- 上一首音乐
- 下一首音乐
- 滑动音乐播放器停止音乐
- 滑动已保存的音乐以移除它
运行项目
- 克隆存储库
git clone https://github.com/zeetec20/flutter_music_player.git
- 打开存储库
cd flutter_music_player
- 运行命令
flutter pub get
flutter run
构建应用
- 克隆存储库
git clone https://github.com/zeetec20/flutter_music_player.git
- 打开存储库
cd flutter_music_player
- 运行命令
flutter pub get
flutter build apk --release
部署应用
- 生成密钥库
# Linux
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
# Windows
keytool -genkey -v -keystore c:\Users\USER_NAME\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
- 引用密钥库
storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=upload
storeFile=<location of the key store file, such as /Users/<user name>/upload-keystore.jks>
- 在 Gradle 中配置签名
- 构建 appbundle
flutter run appbundle --release
- 将 appbundle 上传到 Google Play Console