commit 8f453182c438a683a0bf328ac1f844e5a19fdf1a
Author: wuliwudu <2973566943@qq.com>
Date: Fri Jan 5 13:10:57 2024 +0800
Initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..24476c5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,44 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..8e2946d
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "12fccda598477eddd19f93040a1dba24f915b9be"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: android
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: ios
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: linux
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: macos
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: web
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ - platform: windows
+ create_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+ base_revision: 12fccda598477eddd19f93040a1dba24f915b9be
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f3d5125
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# music_player_miao
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..0d29021
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..309982a
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,67 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+android {
+ namespace "com.example.music_player_miao"
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.music_player_miao"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..bc8133a
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..54c6148
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/music_player_miao/MainActivity.kt b/android/app/src/main/kotlin/com/example/music_player_miao/MainActivity.kt
new file mode 100644
index 0000000..5e56fba
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/music_player_miao/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.music_player_miao
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..bc8133a
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..f7eb7f6
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.7.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.3.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..3c472b9
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..55c4ca8
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,20 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }
+ settings.ext.flutterSdkPath = flutterSdkPath()
+
+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+ plugins {
+ id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
+ }
+}
+
+include ":app"
+
+apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/assets/audio/All.mp3 b/assets/audio/All.mp3
new file mode 100644
index 0000000..b55c49b
Binary files /dev/null and b/assets/audio/All.mp3 differ
diff --git a/assets/audio/FLOWER.mp3 b/assets/audio/FLOWER.mp3
new file mode 100644
index 0000000..c0bc6e8
Binary files /dev/null and b/assets/audio/FLOWER.mp3 differ
diff --git a/assets/audio/MAMAMOO.mp3 b/assets/audio/MAMAMOO.mp3
new file mode 100644
index 0000000..2f7a9a9
Binary files /dev/null and b/assets/audio/MAMAMOO.mp3 differ
diff --git a/assets/audio/Travel.mp3 b/assets/audio/Travel.mp3
new file mode 100644
index 0000000..4dd9455
Binary files /dev/null and b/assets/audio/Travel.mp3 differ
diff --git a/assets/img/More.png b/assets/img/More.png
new file mode 100644
index 0000000..4d44b72
Binary files /dev/null and b/assets/img/More.png differ
diff --git a/assets/img/app_bg.png b/assets/img/app_bg.png
new file mode 100644
index 0000000..ecf3fbb
Binary files /dev/null and b/assets/img/app_bg.png differ
diff --git a/assets/img/app_logo.png b/assets/img/app_logo.png
new file mode 100644
index 0000000..2bef832
Binary files /dev/null and b/assets/img/app_logo.png differ
diff --git a/assets/img/artist_pic.png b/assets/img/artist_pic.png
new file mode 100644
index 0000000..c0019ac
Binary files /dev/null and b/assets/img/artist_pic.png differ
diff --git a/assets/img/back.png b/assets/img/back.png
new file mode 100644
index 0000000..960b03a
Binary files /dev/null and b/assets/img/back.png differ
diff --git a/assets/img/banner.png b/assets/img/banner.png
new file mode 100644
index 0000000..f760a6d
Binary files /dev/null and b/assets/img/banner.png differ
diff --git a/assets/img/bingo.png b/assets/img/bingo.png
new file mode 100644
index 0000000..546f08c
Binary files /dev/null and b/assets/img/bingo.png differ
diff --git a/assets/img/button_play.png b/assets/img/button_play.png
new file mode 100644
index 0000000..1f40cb5
Binary files /dev/null and b/assets/img/button_play.png differ
diff --git a/assets/img/commend_down.png b/assets/img/commend_down.png
new file mode 100644
index 0000000..dd81896
Binary files /dev/null and b/assets/img/commend_down.png differ
diff --git a/assets/img/commend_up.png b/assets/img/commend_up.png
new file mode 100644
index 0000000..e374a97
Binary files /dev/null and b/assets/img/commend_up.png differ
diff --git a/assets/img/correct.png b/assets/img/correct.png
new file mode 100644
index 0000000..546f08c
Binary files /dev/null and b/assets/img/correct.png differ
diff --git a/assets/img/home_search.png b/assets/img/home_search.png
new file mode 100644
index 0000000..1bf768e
Binary files /dev/null and b/assets/img/home_search.png differ
diff --git a/assets/img/home_tab.png b/assets/img/home_tab.png
new file mode 100644
index 0000000..c4db915
Binary files /dev/null and b/assets/img/home_tab.png differ
diff --git a/assets/img/home_tab_un.png b/assets/img/home_tab_un.png
new file mode 100644
index 0000000..0e1b8c5
Binary files /dev/null and b/assets/img/home_tab_un.png differ
diff --git a/assets/img/list_add.png b/assets/img/list_add.png
new file mode 100644
index 0000000..98ee0a4
Binary files /dev/null and b/assets/img/list_add.png differ
diff --git a/assets/img/list_collection.png b/assets/img/list_collection.png
new file mode 100644
index 0000000..0b6fb02
Binary files /dev/null and b/assets/img/list_collection.png differ
diff --git a/assets/img/list_comment.png b/assets/img/list_comment.png
new file mode 100644
index 0000000..8088fe8
Binary files /dev/null and b/assets/img/list_comment.png differ
diff --git a/assets/img/list_download.png b/assets/img/list_download.png
new file mode 100644
index 0000000..9cb1a58
Binary files /dev/null and b/assets/img/list_download.png differ
diff --git a/assets/img/list_good.png b/assets/img/list_good.png
new file mode 100644
index 0000000..99fd85a
Binary files /dev/null and b/assets/img/list_good.png differ
diff --git a/assets/img/list_op.png b/assets/img/list_op.png
new file mode 100644
index 0000000..3dc9baa
Binary files /dev/null and b/assets/img/list_op.png differ
diff --git a/assets/img/list_pic.png b/assets/img/list_pic.png
new file mode 100644
index 0000000..7d0f1e4
Binary files /dev/null and b/assets/img/list_pic.png differ
diff --git a/assets/img/list_remove.png b/assets/img/list_remove.png
new file mode 100644
index 0000000..d572cf5
Binary files /dev/null and b/assets/img/list_remove.png differ
diff --git a/assets/img/list_tab.png b/assets/img/list_tab.png
new file mode 100644
index 0000000..b7b92d8
Binary files /dev/null and b/assets/img/list_tab.png differ
diff --git a/assets/img/list_tab_un.png b/assets/img/list_tab_un.png
new file mode 100644
index 0000000..ec70e48
Binary files /dev/null and b/assets/img/list_tab_un.png differ
diff --git a/assets/img/login_lock.png b/assets/img/login_lock.png
new file mode 100644
index 0000000..68241d0
Binary files /dev/null and b/assets/img/login_lock.png differ
diff --git a/assets/img/login_user.png b/assets/img/login_user.png
new file mode 100644
index 0000000..e059914
Binary files /dev/null and b/assets/img/login_user.png differ
diff --git a/assets/img/music_Ellipse.png b/assets/img/music_Ellipse.png
new file mode 100644
index 0000000..b88d634
Binary files /dev/null and b/assets/img/music_Ellipse.png differ
diff --git a/assets/img/music_add.png b/assets/img/music_add.png
new file mode 100644
index 0000000..6126b29
Binary files /dev/null and b/assets/img/music_add.png differ
diff --git a/assets/img/music_artist.png b/assets/img/music_artist.png
new file mode 100644
index 0000000..298459a
Binary files /dev/null and b/assets/img/music_artist.png differ
diff --git a/assets/img/music_back.png b/assets/img/music_back.png
new file mode 100644
index 0000000..3dbeec5
Binary files /dev/null and b/assets/img/music_back.png differ
diff --git a/assets/img/music_commend_un.png b/assets/img/music_commend_un.png
new file mode 100644
index 0000000..15902a6
Binary files /dev/null and b/assets/img/music_commend_un.png differ
diff --git a/assets/img/music_download.png b/assets/img/music_download.png
new file mode 100644
index 0000000..7ee6e51
Binary files /dev/null and b/assets/img/music_download.png differ
diff --git a/assets/img/music_for.png b/assets/img/music_for.png
new file mode 100644
index 0000000..ef02fd6
Binary files /dev/null and b/assets/img/music_for.png differ
diff --git a/assets/img/music_good.png b/assets/img/music_good.png
new file mode 100644
index 0000000..174cf7e
Binary files /dev/null and b/assets/img/music_good.png differ
diff --git a/assets/img/music_good_un.png b/assets/img/music_good_un.png
new file mode 100644
index 0000000..a99d885
Binary files /dev/null and b/assets/img/music_good_un.png differ
diff --git a/assets/img/music_loop.png b/assets/img/music_loop.png
new file mode 100644
index 0000000..6129523
Binary files /dev/null and b/assets/img/music_loop.png differ
diff --git a/assets/img/music_more.png b/assets/img/music_more.png
new file mode 100644
index 0000000..3dcf86e
Binary files /dev/null and b/assets/img/music_more.png differ
diff --git a/assets/img/music_next.png b/assets/img/music_next.png
new file mode 100644
index 0000000..02da5e4
Binary files /dev/null and b/assets/img/music_next.png differ
diff --git a/assets/img/music_pause.png b/assets/img/music_pause.png
new file mode 100644
index 0000000..4026ea1
Binary files /dev/null and b/assets/img/music_pause.png differ
diff --git a/assets/img/music_play.png b/assets/img/music_play.png
new file mode 100644
index 0000000..91eda11
Binary files /dev/null and b/assets/img/music_play.png differ
diff --git a/assets/img/music_random.png b/assets/img/music_random.png
new file mode 100644
index 0000000..05eec51
Binary files /dev/null and b/assets/img/music_random.png differ
diff --git a/assets/img/music_star.png b/assets/img/music_star.png
new file mode 100644
index 0000000..7cc61fe
Binary files /dev/null and b/assets/img/music_star.png differ
diff --git a/assets/img/music_star_un.png b/assets/img/music_star_un.png
new file mode 100644
index 0000000..6edc3b2
Binary files /dev/null and b/assets/img/music_star_un.png differ
diff --git a/assets/img/music_tab.png b/assets/img/music_tab.png
new file mode 100644
index 0000000..365e6fb
Binary files /dev/null and b/assets/img/music_tab.png differ
diff --git a/assets/img/music_tab_un.png b/assets/img/music_tab_un.png
new file mode 100644
index 0000000..61a3c80
Binary files /dev/null and b/assets/img/music_tab_un.png differ
diff --git a/assets/img/release_delete.png b/assets/img/release_delete.png
new file mode 100644
index 0000000..7a35663
Binary files /dev/null and b/assets/img/release_delete.png differ
diff --git a/assets/img/release_download1.png b/assets/img/release_download1.png
new file mode 100644
index 0000000..2db45cb
Binary files /dev/null and b/assets/img/release_download1.png differ
diff --git a/assets/img/release_info.png b/assets/img/release_info.png
new file mode 100644
index 0000000..5c0e23f
Binary files /dev/null and b/assets/img/release_info.png differ
diff --git a/assets/img/release_pic.png b/assets/img/release_pic.png
new file mode 100644
index 0000000..de37972
Binary files /dev/null and b/assets/img/release_pic.png differ
diff --git a/assets/img/release_pic1.png b/assets/img/release_pic1.png
new file mode 100644
index 0000000..e8fd1a2
Binary files /dev/null and b/assets/img/release_pic1.png differ
diff --git a/assets/img/release_upload.png b/assets/img/release_upload.png
new file mode 100644
index 0000000..33d7e24
Binary files /dev/null and b/assets/img/release_upload.png differ
diff --git a/assets/img/setup_confirm.png b/assets/img/setup_confirm.png
new file mode 100644
index 0000000..b2f62d6
Binary files /dev/null and b/assets/img/setup_confirm.png differ
diff --git a/assets/img/setup_email.png b/assets/img/setup_email.png
new file mode 100644
index 0000000..954850d
Binary files /dev/null and b/assets/img/setup_email.png differ
diff --git a/assets/img/songs_run.png b/assets/img/songs_run.png
new file mode 100644
index 0000000..8b5e2de
Binary files /dev/null and b/assets/img/songs_run.png differ
diff --git a/assets/img/user_add.png b/assets/img/user_add.png
new file mode 100644
index 0000000..4174626
Binary files /dev/null and b/assets/img/user_add.png differ
diff --git a/assets/img/user_export.png b/assets/img/user_export.png
new file mode 100644
index 0000000..2f217ca
Binary files /dev/null and b/assets/img/user_export.png differ
diff --git a/assets/img/user_head.png b/assets/img/user_head.png
new file mode 100644
index 0000000..cc9dd3a
Binary files /dev/null and b/assets/img/user_head.png differ
diff --git a/assets/img/user_infor.png b/assets/img/user_infor.png
new file mode 100644
index 0000000..de28f54
Binary files /dev/null and b/assets/img/user_infor.png differ
diff --git a/assets/img/user_more.png b/assets/img/user_more.png
new file mode 100644
index 0000000..0ea1047
Binary files /dev/null and b/assets/img/user_more.png differ
diff --git a/assets/img/user_next.png b/assets/img/user_next.png
new file mode 100644
index 0000000..78ee857
Binary files /dev/null and b/assets/img/user_next.png differ
diff --git a/assets/img/user_out.png b/assets/img/user_out.png
new file mode 100644
index 0000000..1c73ffd
Binary files /dev/null and b/assets/img/user_out.png differ
diff --git a/assets/img/user_tab.png b/assets/img/user_tab.png
new file mode 100644
index 0000000..bea2fe3
Binary files /dev/null and b/assets/img/user_tab.png differ
diff --git a/assets/img/user_tab_un.png b/assets/img/user_tab_un.png
new file mode 100644
index 0000000..9a7bf6a
Binary files /dev/null and b/assets/img/user_tab_un.png differ
diff --git a/assets/img/warning.png b/assets/img/warning.png
new file mode 100644
index 0000000..b9594bb
Binary files /dev/null and b/assets/img/warning.png differ
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..9625e10
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..0e1e18e
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,614 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807E294A63A400263BE5 /* Frameworks */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1430;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.musicPlayerMiao;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..87131a0
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..7353c41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..6ed2d93
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cd7b00
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..fe73094
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..321773c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..502f463
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..e9f5fea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..84ac32a
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..8953cba
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..0467bf1
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..a51fc65
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Music Player Miao
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ music_player_miao
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/lib/api/api_client.dart b/lib/api/api_client.dart
new file mode 100644
index 0000000..e2a4fd6
--- /dev/null
+++ b/lib/api/api_client.dart
@@ -0,0 +1,104 @@
+// api/api_client.dart
+// ignore_for_file: constant_identifier_names
+
+import 'package:dio/dio.dart';
+import 'package:music_player_miao/models/universal_bean.dart';
+import '../models/getInfo_bean.dart';
+import '../models/login_bean.dart';
+
+const String _LoginURL = 'http://flyingpig.fun:10010/users/login';
+const String _LogoutURL = 'http://flyingpig.fun:10010/users/logout';
+const String _SetupURL = 'http://flyingpig.fun:10010/email/register';
+const String _verificationURL = 'http://flyingpig.fun:10010/email/verificationCode';
+const String _GetInfoURL = 'http://flyingpig.fun:10010/users/info';
+
+///登录
+class LoginApiClient {
+ final Dio dio = Dio();
+ Future login({
+ required String email,
+ required String password,
+ }) async {
+ Response response = await dio.post(
+ _LoginURL,
+ data: {
+ 'email': email,
+ 'password': password,
+ },
+ options: Options(headers:{'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return LoginBean.formMap(response.data);
+
+ }
+}
+///登出
+class LogoutApiClient {
+ final Dio dio = Dio();
+ Future logout({
+ required String Authorization,
+ }) async {
+ Response response = await dio.post(
+ _LogoutURL,
+ data: {
+ 'Authorization': Authorization,
+ },
+ options: Options(headers:{'Authorization':Authorization,'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+
+}
+///注册
+class SetupApiClient{
+ final Dio dio = Dio();
+ Future register({
+ required String email,
+ required String password,
+ required String username,
+ required String verificationCode,
+ }) async {
+ Response response = await dio.post(
+ _SetupURL,
+ data: {
+ 'email': email,
+ 'password': password,
+ "username": username,
+ "verificationCode": verificationCode,
+ },
+ options: Options(headers:{'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+
+ Future verification({required String email,}) async {
+ Response response = await dio.get(
+ _verificationURL,
+ queryParameters: {'email':email},
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+}
+///获取用户信息
+class GetInfoApiClient{
+ final Dio dio = Dio();
+ Future getInfo({required String Authorization,}) async {
+ Response response = await dio.get(
+ _GetInfoURL,
+ data: {
+ 'Authorization':Authorization
+ },
+ options: Options(headers:{'Authorization':Authorization,'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return GetInfoBean.formMap(response.data);
+ }
+}
+
+
+
+
+
diff --git a/lib/api/api_client_info.dart b/lib/api/api_client_info.dart
new file mode 100644
index 0000000..24c3f08
--- /dev/null
+++ b/lib/api/api_client_info.dart
@@ -0,0 +1,54 @@
+import 'dart:io';
+
+import 'package:dio/dio.dart';
+
+import '../models/universal_bean.dart';
+
+const String _changeNameURL = 'http://flyingpig.fun:10010/users/username';
+const String _changeHeaderURL = 'http://flyingpig.fun:10010/users/avatar';
+
+class ChangeApiClient {
+ final Dio dio = Dio();
+ ///修改昵称
+ Future changeName({
+ required String Authorization,
+ required String userName
+ }) async {
+ Response response = await dio.put(
+ _changeNameURL,
+ data: {
+ 'Authorization': Authorization,
+ },
+ queryParameters: {'userName':userName},
+ options: Options(headers:{'Authorization':Authorization,'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+///修改头像
+
+ Future changeHeader({
+ required String Authorization,
+ required File avatar,
+ }) async {
+ FormData formData = FormData.fromMap({
+ 'Authorization': Authorization,
+ 'avatar': await MultipartFile.fromFile(avatar.path, filename: 'avatar.jpg'),
+ });
+
+ Response response = await dio.put(
+ _changeHeaderURL,
+ data: formData,
+ options: Options(
+ headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'multipart/form-data',
+ },
+ ),
+ );
+
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+
+}
diff --git a/lib/api/api_music_likes.dart b/lib/api/api_music_likes.dart
new file mode 100644
index 0000000..c6cd6e5
--- /dev/null
+++ b/lib/api/api_music_likes.dart
@@ -0,0 +1,47 @@
+// api/api_client.dart
+// ignore_for_file: constant_identifier_names
+
+import 'package:dio/dio.dart';
+import 'package:music_player_miao/models/universal_bean.dart';
+
+const String _LikesURL = 'http://flyingpig.fun:10010/likes';
+
+class LikesApiMusic {
+ final Dio dio = Dio();
+
+ ///点赞
+ Future likesMusic({
+ required int musicId,
+ required String Authorization,
+ }) async {
+ Response response = await dio.post(_LikesURL,
+ data: {
+ "Authorization": Authorization,
+ },
+ queryParameters: {'musicId': musicId},
+ options: Options(headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }));
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+
+ ///取消点赞
+ Future unlikesMusic({
+ required int musicId,
+ required String Authorization,
+ }) async {
+ Response response = await dio.post(_LikesURL,
+ data: {
+ "Authorization": Authorization,
+ },
+ queryParameters: {'musicId': musicId},
+ options: Options(headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }));
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+}
diff --git a/lib/api/api_music_return.dart b/lib/api/api_music_return.dart
new file mode 100644
index 0000000..1146b61
--- /dev/null
+++ b/lib/api/api_music_return.dart
@@ -0,0 +1,71 @@
+// api/api_client.dart
+// ignore_for_file: constant_identifier_names
+
+import 'package:dio/dio.dart';
+import 'package:music_player_miao/models/universal_bean.dart';
+import '../models/getComment_bean.dart';
+import '../models/getInfo_bean.dart';
+import '../models/search_bean.dart';
+
+const String _SearchURL = 'http://flyingpig.fun:10010/musics/search';
+const String _postComment = 'http://flyingpig.fun:10010/comments';
+///搜索
+class SearchMusic{
+ final Dio dio = Dio();
+ Future search({required String keyword,}) async {
+ Response response = await dio.get(
+ _SearchURL,
+ queryParameters: {'keyword':keyword}
+ );
+ print(response.data);
+ return SearchBean.formMap(response.data);
+ }
+}
+
+///评论
+class commentMusic {
+ final Dio dio = Dio();
+ Future comment({
+ required int musicId,
+ required String content,
+ required String Authorization,
+ }) async {
+ Response response = await dio.post(
+ _postComment,
+ data: {
+ 'musicId': musicId,
+ 'password': content,
+ 'Authorization': Authorization
+ },
+ options: Options(headers:{'Authorization':Authorization,'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+
+ }
+}
+///get评论
+class getCommentApi {
+ final Dio dio = Dio();
+ Future getComment({
+ required String musicId,
+ required String pageNo,
+ required String pageSize,
+ required String Authorization
+ }) async {
+ Response response = await dio.get(
+ _postComment,
+ queryParameters: {'musicId':musicId,'pageNo':pageNo,'pageSize':pageSize},
+ options: Options(headers:{'Authorization':Authorization,'Content-Type':'application/json;charset=UTF-8'})
+ );
+ print(response.data);
+ return GetCommentBean.formMap(response.data);
+ }
+
+}
+
+
+
+
+
+
diff --git a/lib/api/api_release.dart b/lib/api/api_release.dart
new file mode 100644
index 0000000..fc7eb9c
--- /dev/null
+++ b/lib/api/api_release.dart
@@ -0,0 +1,45 @@
+// api/api_client.dart
+// ignore_for_file: constant_identifier_names
+
+import 'package:dio/dio.dart';
+import 'package:music_player_miao/models/universal_bean.dart';
+import 'dart:io';
+
+import 'package:path/path.dart';
+
+const String _ReleaseURL = 'http://flyingpig.fun:10010/musics';
+
+///上传
+class ReleaseApi {
+ final Dio dio = Dio();
+ Future release({
+ required File coverFile,
+ required File musicFile,
+ required String Authorization,
+ required String singerName,
+ required String name,
+ required String introduce,
+ }) async {
+ String coverFileName = basename(coverFile.path);
+ String musicFileName = basename(musicFile.path);
+ FormData formData = FormData.fromMap({
+ 'Authorization': Authorization,
+ 'coverFile': await MultipartFile.fromFile(coverFile.path, filename: coverFileName),
+ 'musicFile': await MultipartFile.fromFile(musicFile.path, filename: musicFileName),
+ 'singerName': singerName,
+ 'name': name,
+ 'introduce': introduce,
+ });
+ Response response = await dio.post(
+ _ReleaseURL,
+ queryParameters: {'singerName':singerName,'name':name,'introduce':introduce},
+ data: formData,
+ options: Options(headers:{'Authorization':Authorization,
+ 'Content-Type':'multipart/form-data;boundary=--------------------------741231434897925203274596',
+ 'Content-Length':'2858240'})
+ );
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+
+ }
+}
diff --git a/lib/api/api_songlist.dart b/lib/api/api_songlist.dart
new file mode 100644
index 0000000..387f1b1
--- /dev/null
+++ b/lib/api/api_songlist.dart
@@ -0,0 +1,57 @@
+import 'package:dio/dio.dart';
+import 'package:music_player_miao/models/search_bean.dart';
+import 'package:music_player_miao/models/songlist_bean.dart';
+
+import '../models/universal_bean.dart';
+
+const String _SonglistURL = 'http://flyingpig.fun:10010/songlists';
+///返回歌单
+class SonglistApi {
+ final Dio dio = Dio();
+
+ Future getSonglist({required String Authorization}) async {
+ Response response = await dio.get(_SonglistURL,
+ data: {
+ 'Authorization': Authorization,
+ },
+ options: Options(headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }));
+ print(response.data);
+ return SearchBean.formMap(response.data);
+ }
+
+ ///添加歌单
+ Future addSonglist(
+ {required String songlistName, required String Authorization}) async {
+ Response response = await dio.post(_SonglistURL,
+ data: {
+ 'Authorization': Authorization,
+ },
+ queryParameters: {'songlistName': songlistName},
+ options: Options(headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }));
+ print(response.data);
+ return SonglistBean.formMap(response.data);
+ }
+
+ ///删除歌单
+ Future delSonglist({required String Authorization,required int id}) async {
+ String urlWithId = '$_SonglistURL/$id';
+ Response response = await dio.delete(
+ urlWithId,
+ data: {
+ 'Authorization': Authorization,
+ },
+ options: Options(headers: {
+ 'Authorization': Authorization,
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }));
+
+ print(response.data);
+ return UniversalBean.formMap(response.data);
+ }
+}
diff --git a/lib/common/color_extension.dart b/lib/common/color_extension.dart
new file mode 100644
index 0000000..1c256bc
--- /dev/null
+++ b/lib/common/color_extension.dart
@@ -0,0 +1,10 @@
+import 'package:flutter/material.dart';
+
+class MColor {
+ static Color get LGreen => const Color(0xffE6F4F1);
+ static Color get DGreen => const Color(0xff429482);
+ static Color get LYellow => const Color(0xffEDE59D);
+ static Color get DYellow => const Color(0xffEADA4A);
+
+
+}
diff --git a/lib/common_widget/Song_widegt.dart b/lib/common_widget/Song_widegt.dart
new file mode 100644
index 0000000..50cfd43
--- /dev/null
+++ b/lib/common_widget/Song_widegt.dart
@@ -0,0 +1,9 @@
+class Song {
+ final String pic;
+ final String artistPic;
+ final String title;
+ final String artist;
+ final String musicurl;
+
+ Song( {required this.pic,required this.artistPic,required this.title, required this.artist, required this.musicurl});
+}
diff --git a/lib/common_widget/app_data.dart b/lib/common_widget/app_data.dart
new file mode 100644
index 0000000..b4551e6
--- /dev/null
+++ b/lib/common_widget/app_data.dart
@@ -0,0 +1,17 @@
+import 'package:get/get.dart';
+import 'package:get_storage/get_storage.dart';
+
+class AppData extends GetxController{
+ final box = GetStorage();
+ bool get isFlag => box.read('isFlag');
+ bool get isLikes => box.read('isLikes') ?? false;
+ String get currentToken => box.read('currentToken');
+ String get currentUsername => box.read('currentUsername') ?? '游客';
+ String get currentAvatar=> box.read('currentAvatar') ?? 'http://b.hiphotos.baidu.com/image/pic/item/e824b899a9014c08878b2c4c0e7b02087af4f4a3.jpg';
+
+ initData(){
+ if(box.read('isFlag')==null){
+ box.write('isFlag', false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/lib/common_widget/icon_text_row.dart b/lib/common_widget/icon_text_row.dart
new file mode 100644
index 0000000..f110fdd
--- /dev/null
+++ b/lib/common_widget/icon_text_row.dart
@@ -0,0 +1,44 @@
+import 'package:flutter/material.dart';
+
+
+class IconTextRow extends StatelessWidget {
+ final String title;
+ final String icon;
+ final VoidCallback onTap;
+ const IconTextRow({super.key, required this.title, required this.icon, required this.onTap});
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ SizedBox(
+ height: 44,
+ child: ListTile(
+ leading: Image.asset(
+ icon,
+ width: 40,
+ height: 40,
+ fit: BoxFit.contain,
+ ),
+ title: Text(
+ title,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 14,
+ fontWeight: FontWeight.w600
+ ),
+ ),
+ onTap: (){
+
+ },
+ ),
+ ),
+ Divider(
+ color: Colors.black,
+ indent: 70,
+ ),
+ ],
+ );
+ }
+}
diff --git a/lib/common_widget/list_cell.dart b/lib/common_widget/list_cell.dart
new file mode 100644
index 0000000..fd4fa5a
--- /dev/null
+++ b/lib/common_widget/list_cell.dart
@@ -0,0 +1,71 @@
+
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+
+import '../view/list_details_view.dart';
+
+
+class ListRow extends StatelessWidget {
+ final Map sObj;
+ final VoidCallback onPressedPlay;
+ final VoidCallback onPressed;
+ const ListRow({
+ super.key,
+ required this.sObj,
+ required this.onPressed,
+ required this.onPressedPlay,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ InkWell(
+ onTap: (){Get.to(ListDetailsView());},
+ child: Column(
+ children: [
+ Stack(
+ alignment: Alignment.center,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ sObj["image"],
+ width: 125,
+ height: 120,
+ fit: BoxFit.cover,
+ ),
+ ),
+ Positioned(
+ child: IconButton(
+ onPressed: onPressedPlay,
+ icon: Image.asset(
+ "assets/img/songs_run.png",
+ width: 30,
+ height: 30,
+ ),
+ ),
+ right: -5,
+ bottom: -5,
+ )
+ ],
+ ),
+ const SizedBox(height: 5,),
+ Text(
+ sObj["text"],
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w400),
+ ),
+
+ ],
+
+ ),
+ ),
+ ],
+ );
+ }
+}
diff --git a/lib/common_widget/lits_songs_row.dart b/lib/common_widget/lits_songs_row.dart
new file mode 100644
index 0000000..8838990
--- /dev/null
+++ b/lib/common_widget/lits_songs_row.dart
@@ -0,0 +1,55 @@
+import 'package:flutter/material.dart';
+
+
+class ListSongsRow extends StatelessWidget {
+ final Map sObj;
+ final VoidCallback onPressedPlay;
+ final VoidCallback onPressed;
+ const ListSongsRow({
+ super.key,
+ required this.sObj,
+ required this.onPressed,
+ required this.onPressedPlay,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(
+ children: [
+ const SizedBox(width: 20,),
+ Text(
+ sObj["name"]+"-" ??"",
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 18,
+ fontWeight: FontWeight.w400),
+ ),
+ Text(
+ sObj["artists"] ?? "",
+ maxLines: 1,
+ style: TextStyle(color: Colors.black, fontSize: 18),
+ ),
+ ],
+ ),
+
+
+ const SizedBox(width: 20,),
+
+ IconButton(
+ onPressed: onPressedPlay,
+ icon: Image.asset(
+ "assets/img/More.png",
+ width: 25,
+ height: 25,
+ ),
+ ),
+ ],
+ );
+
+ }
+}
diff --git a/lib/common_widget/rank_song_row.dart b/lib/common_widget/rank_song_row.dart
new file mode 100644
index 0000000..dd1b4f9
--- /dev/null
+++ b/lib/common_widget/rank_song_row.dart
@@ -0,0 +1,211 @@
+import 'package:flutter/material.dart';
+class RankSongsRow extends StatelessWidget {
+ final Map sObj;
+ final VoidCallback onPressedPlay;
+ final VoidCallback onPressed;
+ final String? rank;
+ const RankSongsRow({
+ super.key,
+ required this.sObj,
+ required this.onPressed,
+ required this.onPressedPlay, required this.rank,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ rank: sObj["rank"];
+ return
+ Column(
+ children: [
+ Row(
+ // mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(
+ children: [
+ SizedBox(
+ width: 15,
+ child: RichText(
+ text: TextSpan(
+ text: sObj["rank"],
+ style: TextStyle(
+ fontSize: getRankFontSize(sObj["rank"]),
+ fontWeight: FontWeight.w700,
+ color: Color(0xffCE0000),
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(width: 10,),
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ sObj["image"],
+ width: 80,
+ height: 80,
+ fit: BoxFit.cover,
+ ),
+ ),
+
+ const SizedBox(width: 20,),
+ SizedBox(
+ width: 170,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ sObj["name"],
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w400),
+ ),
+ Text(
+ sObj["artists"],
+ maxLines: 1,
+ style: TextStyle(color: Colors.black, fontSize: 14),
+ )
+ ],
+ ),
+ ),
+ const SizedBox(width: 20,),
+
+
+ ],
+ ),
+ IconButton(
+ onPressed: (){
+ _bottomSheet(context);
+ },
+ icon: Image.asset(
+ "assets/img/More.png",
+ width: 25,
+ height: 25,
+
+ ),
+ ),
+ const SizedBox(height: 20,)
+ ],
+ ),
+ const SizedBox(height: 10,)
+ ],
+
+ );
+
+ }
+ getRankFontSize(String rank) {
+ switch (rank) {
+ case '1': case '2':case '3':
+ return 30.0;
+ default:
+ return 20.0;
+ }
+ }
+ Future _bottomSheet(BuildContext context){
+ return showModalBottomSheet(
+ context: context,
+ backgroundColor: Colors.white,
+ shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(30))),
+ builder: (context) =>Container(
+ height: 210,
+ padding: const EdgeInsets.only(top: 20),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ children: [
+ Column(
+ children: [
+ IconButton(
+ onPressed: (){},
+ icon: Image.asset("assets/img/list_add.png"),
+ iconSize: 60,
+ ),
+ Text("加入歌单")
+ ],
+ ),
+ Column(
+ children: [
+ IconButton(
+ onPressed: (){},
+ icon: Image.asset("assets/img/list_download.png"),
+ iconSize: 60,
+ ),
+ Text("下载")
+ ],
+ ),
+ Column(
+ children: [
+ IconButton(
+ onPressed: (){},
+ icon: Image.asset("assets/img/list_collection.png"),
+ iconSize: 60,
+ ),
+ Text("收藏")
+ ],
+ ),
+ Column(
+ children: [
+ IconButton(
+ onPressed: (){},
+ icon: Image.asset("assets/img/list_good.png"),
+ iconSize: 60,
+ ),
+ Text("点赞")
+ ],
+ ),
+ Column(
+ children: [
+ IconButton(
+ onPressed: (){},
+ icon: Image.asset("assets/img/list_comment.png"),
+ iconSize: 60,
+ ),
+ Text("评论")
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(height: 10,),
+ ElevatedButton(
+ onPressed: () {
+ // Get.to(()=>const MainTabView());
+ },
+ child: Text(
+ "查看详情页",
+ style: const TextStyle(color:Colors.black,fontSize: 18),
+ ),
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xffE6F4F1),
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.zero,
+ ),
+ ),
+
+ ),
+ ElevatedButton(
+ onPressed: () =>Navigator.pop(context),
+ child: Text(
+ "取消",
+ style: const TextStyle(color:Colors.black,fontSize: 18),
+ ),
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xff429482),
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.zero,
+ ),
+ ),
+
+ ),
+ ],
+ ),
+ )
+
+ );
+ }
+}
diff --git a/lib/common_widget/songs_row.dart b/lib/common_widget/songs_row.dart
new file mode 100644
index 0000000..d0e204d
--- /dev/null
+++ b/lib/common_widget/songs_row.dart
@@ -0,0 +1,93 @@
+import 'package:audioplayers/audioplayers.dart';
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+import 'package:get/get_core/src/get_main.dart';
+
+import '../view/music_view.dart';
+
+
+class SongsRow extends StatelessWidget {
+ final Map sObj;
+ final VoidCallback onPressedPlay;
+ final VoidCallback onPressed;
+ const SongsRow({
+ super.key,
+ required this.sObj,
+ required this.onPressed,
+ required this.onPressedPlay
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ int currentMusic = 0;
+
+ final player = AudioPlayer();
+ bool isOpened = false;
+ return Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ InkWell(
+ onTap: onPressed,
+ child: Row(
+ children: [
+ Stack(
+ alignment: Alignment.center,
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ sObj["image"],
+ width: 60,
+ height: 60,
+ fit: BoxFit.cover,
+ ),
+ ),
+ Positioned(
+ child: Image.asset(
+ "assets/img/songs_run.png",
+ width: 20,
+ height: 20,
+ ),
+ right: 0,
+ bottom: 0,
+ )
+ ],
+ ),
+ const SizedBox(width: 20,),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ sObj["name"],
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w400),
+ ),
+ Text(
+ sObj["artists"],
+ maxLines: 1,
+ style: TextStyle(color: Colors.black, fontSize: 14),
+ )
+ ],
+ )),
+
+ IconButton(
+ onPressed: onPressedPlay,
+ icon: Image.asset(
+ "assets/img/More.png",
+ width: 25,
+ height: 25,
+
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 10,)
+ ],
+ );
+ }
+}
diff --git a/lib/common_widget/try_row.dart b/lib/common_widget/try_row.dart
new file mode 100644
index 0000000..43f3a42
--- /dev/null
+++ b/lib/common_widget/try_row.dart
@@ -0,0 +1,41 @@
+// home_view_model.dart
+
+import 'package:get/get.dart';
+
+import 'Song_widegt.dart';
+
+class TryRow extends GetxController {
+ final RxString txtSearch = ''.obs;
+
+ final List allSongs = [
+ Song(
+ artistPic: 'assets/img/music_artist.png',
+ title: '背对背拥抱1',
+ artist: '林俊杰 1',
+ musicurl: 'audio/MAMAMOO.mp3',
+ pic: 'assets/img/artist_pic.png',
+ ),
+ // Add more songs here
+ ];
+
+ RxList filteredSongs = [].obs;
+
+ @override
+ void onInit() {
+ filteredSongs.assignAll(allSongs);
+ super.onInit();
+ }
+
+ void updateSearchResults() {
+ final String query = txtSearch.value.toLowerCase();
+ if (query.isEmpty) {
+ filteredSongs.assignAll(allSongs);
+ } else {
+ filteredSongs.assignAll(allSongs
+ .where((song) =>
+ song.title.toLowerCase().contains(query) ||
+ song.artist.toLowerCase().contains(query))
+ .toList());
+ }
+ }
+}
diff --git a/lib/common_widget/upload_row.dart b/lib/common_widget/upload_row.dart
new file mode 100644
index 0000000..316b58e
--- /dev/null
+++ b/lib/common_widget/upload_row.dart
@@ -0,0 +1,73 @@
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+import 'package:get/get_core/src/get_main.dart';
+import 'package:music_player_miao/view/list_details_view.dart';
+import 'package:music_player_miao/view/main_tab_view/main_tab_view.dart';
+
+import '../view/music_view.dart';
+
+
+class UploadRow extends StatelessWidget {
+ final Map sObj;
+ final VoidCallback onPressedPlay;
+ final VoidCallback onPressed;// Add this callback
+ const UploadRow({
+ super.key,
+ required this.sObj,
+ required this.onPressed,
+ required this.onPressedPlay
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Row(
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ sObj["image"],
+ width: 60,
+ height: 60,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 15,),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ sObj["name"],
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w400),
+ ),
+ Text(
+ sObj["artists"],
+ maxLines: 1,
+ style: TextStyle(color: Colors.black, fontSize: 14),
+ )
+ ],
+ )),
+
+ IconButton(
+ onPressed: onPressedPlay,
+ icon: Image.asset(
+ "assets/img/More.png",
+ width: 25,
+ height: 25,
+
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 10,)
+ ],
+ );
+ }
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..95874c1
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,30 @@
+import 'package:flutter/material.dart';
+import 'package:music_player_miao/common_widget/app_data.dart';
+import 'package:music_player_miao/view/splash_view.dart';
+import 'package:get/get.dart';
+import 'dart:io';
+import 'package:flutter/services.dart';
+
+void main(){
+ WidgetsFlutterBinding.ensureInitialized();
+ Get.put(AppData());
+ runApp( const MyApp());
+ if (Platform.isAndroid) {
+ SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
+ SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
+ }
+}
+
+class MyApp extends StatelessWidget {
+ const MyApp({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return const GetMaterialApp(
+ debugShowCheckedModeBanner: false,
+ home: SplashView(),
+ );
+ }
+}
+
+
diff --git a/lib/models/getComment_bean.dart b/lib/models/getComment_bean.dart
new file mode 100644
index 0000000..d084d1d
--- /dev/null
+++ b/lib/models/getComment_bean.dart
@@ -0,0 +1,38 @@
+
+class GetCommentBean {
+ int? code;
+ String? msg;
+ int? total;
+ List? rows;
+
+ GetCommentBean.formMap(Map map) {
+ code = map['code'];
+ msg = map['msg'];
+ total = map['total'];
+
+ List? rowList = map['rows'];
+ if (rowList == null) return;
+
+ rows = rowList
+ .map((item) => CommentBean._formMap(item))
+ .toList();
+ }
+}
+
+
+
+class CommentBean {
+ int? id;
+ String? content;
+ String? time;
+ String? username;
+ String? avatar;
+
+ CommentBean._formMap(Map map) {
+ id = map['id'];
+ content = map['content'];
+ time = map['time'];
+ username = map['username'];
+ avatar = map['avatar'];
+ }
+}
diff --git a/lib/models/getInfo_bean.dart b/lib/models/getInfo_bean.dart
new file mode 100644
index 0000000..4d24039
--- /dev/null
+++ b/lib/models/getInfo_bean.dart
@@ -0,0 +1,28 @@
+import '../common_widget/app_data.dart';
+
+class GetInfoBean {
+ int? code;
+ String? msg;
+ int? id;
+ String? avatar;
+ String? username;
+
+ GetInfoBean.formMap(Map map){
+ code = map['code'];
+ msg = map['msg'];
+ if (map['data'] == '') return;
+ Map? data = map['data'];
+ if (data == null) return;
+ id = data['id'];
+ avatar = data['avatar'];
+ if (avatar != null) {
+ AppData appData = AppData();
+ appData.box.write('currentAvatar', avatar);
+ }
+ username = data['username'];
+ if (username != null) {
+ AppData appData = AppData();
+ appData.box.write('currentUsername', username);
+ }
+ }
+}
\ No newline at end of file
diff --git a/lib/models/login_bean.dart b/lib/models/login_bean.dart
new file mode 100644
index 0000000..31e1e92
--- /dev/null
+++ b/lib/models/login_bean.dart
@@ -0,0 +1,26 @@
+
+import '../common_widget/app_data.dart';
+
+class LoginBean {
+ int? code;
+ String? msg;
+ int? id;
+ String? email;
+ String? token;
+
+ LoginBean.formMap(Map map){
+ code = map['code'];
+ msg= map['msg'];
+ if (map['data'] == '') return;
+ Map? data = map['data'];
+ if (data == null) return;
+ id = data['id'];
+ email = data['email'];
+ token = data['token'];
+ if (token != null) {
+ AppData appData = AppData();
+ appData.box.write('currentToken', token);
+ }
+ }
+}
+
diff --git a/lib/models/search_bean.dart b/lib/models/search_bean.dart
new file mode 100644
index 0000000..f402b25
--- /dev/null
+++ b/lib/models/search_bean.dart
@@ -0,0 +1,28 @@
+class SearchBean {
+ int? code;
+ String? msg;
+ List? data;
+
+ SearchBean.formMap(Map map) {
+ code = map['code'];
+ msg = map['msg'];
+ if (map['data'] == null) return;
+
+ List? dataList = map['data'];
+ if (dataList == null) return;
+
+ data = dataList
+ .map((item) => DataBean._formMap(item))
+ .toList();
+ }
+}
+
+class DataBean {
+ int? id;
+ String? name;
+
+ DataBean._formMap(Map map) {
+ id = map['id'];
+ name = map['name'];
+ }
+}
diff --git a/lib/models/songlist_bean.dart b/lib/models/songlist_bean.dart
new file mode 100644
index 0000000..d1ef952
--- /dev/null
+++ b/lib/models/songlist_bean.dart
@@ -0,0 +1,16 @@
+class SonglistBean {
+ int? code;
+ String? msg;
+ int? id;
+ String? name;
+
+ SonglistBean.formMap(Map map) {
+ code = map['code'];
+ msg = map['msg'];
+ if (map['data'] == '') return;
+ Map? data = map['data'];
+ if (data == null) return;
+ id = map['id'];
+ name = map['name'];
+ }
+}
diff --git a/lib/models/universal_bean.dart b/lib/models/universal_bean.dart
new file mode 100644
index 0000000..fe0561f
--- /dev/null
+++ b/lib/models/universal_bean.dart
@@ -0,0 +1,11 @@
+class UniversalBean {
+ int? code;
+ String? msg;
+ String? data;
+
+ UniversalBean.formMap(Map map) {
+ code = map['code'];
+ msg = map['msg'];
+ data = map['data'];
+ }
+}
diff --git a/lib/view/begin/begin_view.dart b/lib/view/begin/begin_view.dart
new file mode 100644
index 0000000..9d3ceab
--- /dev/null
+++ b/lib/view/begin/begin_view.dart
@@ -0,0 +1,154 @@
+import 'dart:ui';
+
+import 'package:flutter/material.dart';
+import 'package:music_player_miao/common/color_extension.dart';
+import 'package:music_player_miao/view/begin/login_v.dart';
+import 'package:music_player_miao/view/begin/setup_view.dart';
+
+class BeginView extends StatefulWidget {
+ const BeginView({super.key});
+
+ @override
+ State createState() => _BeginViewState();
+}
+
+class _BeginViewState extends State with TickerProviderStateMixin {
+ late TabController tabController;
+
+ @override
+ void initState() {
+ tabController = TabController(
+ initialIndex: 0,
+ length: 2,
+ vsync: this
+ );
+ super.initState();
+ }
+
+
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ decoration: BoxDecoration(
+ image: DecorationImage(
+ image: AssetImage("assets/img/app_bg.png"),
+ fit: BoxFit.cover,
+ ),
+ ),
+ child: Scaffold(
+ backgroundColor: Colors.transparent,
+ body: SingleChildScrollView(
+ child: Column(
+ children: [
+ Padding(
+ padding: const EdgeInsets.only(top: 110,left: 40,right: 40),
+ child: Row(
+ children: [
+ const Column(
+ children: [
+ Text(
+ "你好吖喵星来客,",
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 20,
+ fontWeight: FontWeight.w500
+ ),
+ ),
+ Row(
+ children: [
+ Text(
+ "欢迎来到",
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 20,
+ fontWeight: FontWeight.w500
+ ),
+ ),
+ Text(
+ "喵听",
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 32,
+ fontWeight: FontWeight.w800
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ const SizedBox(width: 25,),
+ Image.asset("assets/img/app_logo.png", width: 80),
+ ],
+ ),
+ ),
+ SizedBox(
+ height: MediaQuery.of(context).size.height,
+ child: Stack(
+ children: [
+ Align(
+ child: SizedBox(
+ height: MediaQuery.of(context).size.height/1.06,
+ child: Column(
+ children: [
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 30.0),
+ child: Material(
+ color: Colors.white,
+ elevation: 3,
+ borderRadius: BorderRadius.circular(10),
+ child: TabBar(
+ controller: tabController,
+ unselectedLabelColor: Color(0xffCDCDCD),
+ labelColor: Colors.black,
+ indicator:BoxDecoration(
+ borderRadius: BorderRadius.circular(10),
+ color: MColor.LGreen
+ ),
+ tabs: [
+ Container(
+ padding: EdgeInsets.all(8.0),
+ // color: Colors.pink,
+ child: Text(
+ '登录',
+ style: TextStyle(
+ fontSize: 20,
+ ),
+ ),
+ ),
+
+ Container(
+ padding: EdgeInsets.all(8.0),
+ child: Text(
+ '注册',
+ style: TextStyle(
+ fontSize: 20,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ Expanded(
+ child: TabBarView(
+ controller: tabController,
+ children: [
+ LoginV(),
+ SignUpView(),
+ ],
+ )
+ )
+ ],
+ ),
+ ),
+ )
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/view/begin/login_v.dart b/lib/view/begin/login_v.dart
new file mode 100644
index 0000000..7fb54ee
--- /dev/null
+++ b/lib/view/begin/login_v.dart
@@ -0,0 +1,168 @@
+// ignore_for_file: use_build_context_synchronously
+
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+import 'package:music_player_miao/common_widget/app_data.dart';
+import 'package:music_player_miao/models/search_bean.dart';
+import 'package:music_player_miao/view/main_tab_view/main_tab_view.dart';
+
+import '../../api/api_client.dart';
+import '../../api/api_songlist.dart';
+import '../../common/color_extension.dart';
+import '../../models/getInfo_bean.dart';
+import '../../models/login_bean.dart';
+import '../../models/songlist_bean.dart';
+import '../../widget/my_text_field.dart';
+
+class LoginV extends StatefulWidget {
+ const LoginV({super.key});
+
+ @override
+ State createState() => _LoginVState();
+}
+
+class _LoginVState extends State {
+ final passwordController = TextEditingController();
+ final nameController = TextEditingController();
+ final _formKey = GlobalKey();
+ bool signInRequired = false;
+ IconData iconPassword = CupertinoIcons.eye_fill;
+ bool obscurePassword = true;
+
+ @override
+ Widget build(BuildContext context) {
+ return Form(
+ key: _formKey,
+ child: Column(
+ children: [
+ const SizedBox(height: 30),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: MyTextField(
+ controller: nameController,
+ hintText: '请输入账号',
+ obscureText: false,
+ keyboardType: TextInputType.emailAddress,
+ prefixIcon: Image.asset("assets/img/login_user.png"))),
+ const SizedBox(height: 15),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: Center(
+ child: MyTextField(
+ controller: passwordController,
+ hintText: '请输入密码',
+ obscureText: obscurePassword,
+ keyboardType: TextInputType.visiblePassword,
+ prefixIcon: Image.asset("assets/img/login_lock.png"),
+ suffixIcon: IconButton(
+ onPressed: () {
+ setState(() {
+ obscurePassword = !obscurePassword;
+ if (obscurePassword) {
+ iconPassword = CupertinoIcons.eye_fill;
+ } else {
+ iconPassword = CupertinoIcons.eye_slash_fill;
+ }
+ });
+ },
+ icon: Icon(
+ iconPassword,
+ color: MColor.DGreen,
+ ),
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 30),
+ !signInRequired
+ ? SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: TextButton(
+ onPressed: () async {
+ try {
+ LoginBean bean = await LoginApiClient().login(
+ email: nameController.text,
+ password: passwordController.text,
+ );
+ if (bean.code == 200) {
+ Get.to(() => const MainTabView());
+ _showDialog(context,
+ title: 'assets/img/correct.png',
+ message: '登录成功!');
+ GetInfoBean bean1 = await GetInfoApiClient()
+ .getInfo(
+ Authorization: AppData().currentToken);
+ }
+ } catch (error) {
+ String errorMessage = error.toString();
+ _showDialog(context,
+ title: 'assets/img/warning.png',
+ message: errorMessage);
+ }
+ },
+ style: TextButton.styleFrom(
+ elevation: 3.0,
+ backgroundColor: MColor.LGreen,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10))),
+ child: const Padding(
+ padding:
+ EdgeInsets.symmetric(horizontal: 10, vertical: 3),
+ child: Text(
+ '确认',
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 18,
+ fontWeight: FontWeight.w400),
+ ),
+ )),
+ )
+ : const CircularProgressIndicator(),
+ ],
+ ));
+ }
+
+ void _showDialog(BuildContext context,
+ {required String title, required String message}) {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return AlertDialog(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ title: Image.asset(
+ title,
+ width: 47,
+ height: 46,
+ ),
+ content: Text(message, textAlign: TextAlign.center),
+ actions: [
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).pop(); // Close the dialog
+ },
+ style: TextButton.styleFrom(
+ backgroundColor: MColor.DGreen,
+ minimumSize: const Size(double.infinity, 50),
+ shape: RoundedRectangleBorder(
+ borderRadius:
+ BorderRadius.circular(5.0), // Adjust the radius as needed
+ ),
+ ),
+ child: const Text(
+ '确认',
+ style: TextStyle(
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ],
+ );
+ },
+ );
+ }
+}
diff --git a/lib/view/begin/setup_view.dart b/lib/view/begin/setup_view.dart
new file mode 100644
index 0000000..34c1050
--- /dev/null
+++ b/lib/view/begin/setup_view.dart
@@ -0,0 +1,279 @@
+// ignore_for_file: use_build_context_synchronously
+
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+import 'package:music_player_miao/common/color_extension.dart';
+import 'package:music_player_miao/view/main_tab_view/main_tab_view.dart';
+
+import '../../api/api_client.dart';
+import '../../models/universal_bean.dart';
+import '../../widget/my_text_field.dart';
+
+class SignUpView extends StatefulWidget {
+ const SignUpView({super.key});
+
+ @override
+ State createState() => _SignUpViewState();
+}
+
+class _SignUpViewState extends State {
+ final nameController = TextEditingController();
+ final passwordController = TextEditingController();
+ final emailController = TextEditingController();
+ final confirmPSWController = TextEditingController();
+ final confirmController = TextEditingController();
+ final _formKey = GlobalKey();
+ IconData iconPassword = CupertinoIcons.eye_fill;
+ bool obscurePassword = true;
+ bool signUpRequired = false;
+
+ @override
+ Widget build(BuildContext context) {
+ return Form(
+ key: _formKey,
+ child: Center(
+ child: Column(
+ children: [
+ const SizedBox(height: 30),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: MyTextField(
+ controller: nameController,
+ hintText: '请输入用户名',
+ obscureText: false,
+ keyboardType: TextInputType.emailAddress,
+ prefixIcon: Image.asset("assets/img/login_user.png"),
+ validator: (val) {
+ if (val!.isEmpty) {
+ return '输入不能为空!';
+ } else if (val.length > 30) {
+ return '用户名过长!';
+ }
+ return null;
+ }),
+ ),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: MyTextField(
+ controller: emailController,
+ hintText: '请输入邮箱名',
+ obscureText: false,
+ keyboardType: TextInputType.name,
+ prefixIcon: Image.asset("assets/img/setup_email.png"),
+ validator: (val) {
+ if (val!.isEmpty) {
+ return '输入不能为空!';
+ }
+ return null;
+ }),
+ ),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: MyTextField(
+ controller: passwordController,
+ hintText: '请输入密码',
+ obscureText: obscurePassword,
+ keyboardType: TextInputType.visiblePassword,
+ prefixIcon: Image.asset("assets/img/login_lock.png"),
+ suffixIcon: IconButton(
+ onPressed: () {
+ setState(() {
+ obscurePassword = !obscurePassword;
+ if (obscurePassword) {
+ iconPassword = CupertinoIcons.eye_fill;
+ } else {
+ iconPassword = CupertinoIcons.eye_slash_fill;
+ }
+ });
+ },
+ icon: Icon(
+ iconPassword,
+ color: MColor.DGreen,
+ ),
+ ),
+ validator: (val) {
+ if (val!.isEmpty) {
+ return '输入不能为空!';
+ } else if (val.length < 8) {
+ return '密码长度不能小于8';
+ }
+ return null;
+ }),
+ ),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: MyTextField(
+ controller: confirmPSWController,
+ hintText: '请确认密码',
+ obscureText: obscurePassword,
+ keyboardType: TextInputType.visiblePassword,
+ prefixIcon: Image.asset("assets/img/login_lock.png"),
+ suffixIcon: IconButton(
+ onPressed: () {
+ setState(() {
+ obscurePassword = !obscurePassword;
+ if (obscurePassword) {
+ iconPassword = CupertinoIcons.eye_fill;
+ } else {
+ iconPassword = CupertinoIcons.eye_slash_fill;
+ }
+ });
+ },
+ icon: Icon(
+ iconPassword,
+ color: MColor.DGreen,
+ ),
+ ),
+ validator: (val) {
+ if (val!.isEmpty) {
+ return '输入不能为空!';
+ } else if (passwordController.text !=
+ confirmPSWController.text) {
+ return '请确保两次密码一致';
+ }
+ return null;
+ }),
+ ),
+ const SizedBox(height: 10),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.48,
+ // height: MediaQuery.of(context).size.width * 0.16,
+ child: MyTextField(
+ controller: confirmController,
+ hintText: '请输入验证码',
+ obscureText: false,
+ keyboardType: TextInputType.name,
+ prefixIcon: Image.asset("assets/img/setup_confirm.png"),
+ validator: (val) {
+ if (val!.isEmpty) {
+ return '输入不能为空!';
+ }
+ return null;
+ }),
+ ),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.3,
+ height: MediaQuery.of(context).size.width * 0.13,
+ child: ElevatedButton(
+ style: ElevatedButton.styleFrom(
+ backgroundColor: MColor.LGreen),
+ onPressed: () async {
+ UniversalBean bean =
+ await SetupApiClient().verification(
+ email: emailController.text,
+ );
+ _showSuccessDialog(context,
+ title: bean.code == 200
+ ? 'assets/img/correct.png'
+ : 'assets/img/warning.png',
+ errorMessage:
+ bean.code == 200 ? '验证码已成功发送!' : '邮箱格式不正确!');
+ },
+ child: const Text(
+ "获取验证码",
+ style: TextStyle(color: Colors.black45, fontSize: 16),
+ )),
+ ),
+ ],
+ ),
+ const SizedBox(height: 30),
+ SizedBox(
+ width: MediaQuery.of(context).size.width * 0.85,
+ child: TextButton(
+ onPressed: () async {
+ if (_formKey.currentState?.validate() == false) {
+ const Text(
+ '',
+ style: TextStyle(
+ color: Colors.red,
+ fontSize: 12,
+ ),
+ );
+ }
+ UniversalBean bean = await SetupApiClient().register(
+ email: emailController.text,
+ password: passwordController.text,
+ username: nameController.text,
+ verificationCode: confirmController.text);
+ _showSuccessDialog(context,
+ title: bean.code == 200
+ ? 'assets/img/correct.png'
+ : 'assets/img/warning.png',
+ errorMessage:
+ bean.code == 200 ? '注册成功,一键登录' : '登录失败,验证码错误');
+ if (bean.code == 200) Get.to(const MainTabView());
+ },
+ style: TextButton.styleFrom(
+ elevation: 3.0,
+ backgroundColor: MColor.LGreen,
+ foregroundColor: Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10))),
+ child: const Padding(
+ padding: EdgeInsets.symmetric(horizontal: 20, vertical: 3),
+ child: Text(
+ '确认',
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 18,
+ fontWeight: FontWeight.w400),
+ ),
+ )),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ void _showSuccessDialog(BuildContext context,
+ {required String errorMessage, required String title}) {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return AlertDialog(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10),
+ ),
+ title: Image.asset(
+ title,
+ width: 47,
+ height: 46,
+ ),
+ content: Text(errorMessage, textAlign: TextAlign.center),
+ actions: [
+ TextButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ // Get.to(const MainTabView());
+ },
+ style: TextButton.styleFrom(
+ backgroundColor: const Color(0xff429482),
+ minimumSize: const Size(double.infinity, 50),
+ shape: RoundedRectangleBorder(
+ borderRadius:
+ BorderRadius.circular(5.0), // Adjust the radius as needed
+ ),
+ ),
+ child: const Text(
+ '确认',
+ style: TextStyle(
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ],
+ );
+ },
+ );
+ }
+}
diff --git a/lib/view/commend_view.dart b/lib/view/commend_view.dart
new file mode 100644
index 0000000..48fb130
--- /dev/null
+++ b/lib/view/commend_view.dart
@@ -0,0 +1,304 @@
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+import 'package:music_player_miao/api/api_music_return.dart';
+import 'package:music_player_miao/common_widget/app_data.dart';
+import 'package:music_player_miao/models/getComment_bean.dart';
+import 'package:music_player_miao/models/universal_bean.dart';
+import 'package:music_player_miao/widget/text_field.dart';
+
+
+class CommentView extends StatefulWidget {
+ @override
+ _CommentViewState createState() => _CommentViewState();
+
+ CommentView({super.key, required this.initialSongIndex});
+
+ late final int initialSongIndex;
+}
+
+class _CommentViewState extends State {
+ List comments = [];
+
+ TextEditingController commentController = TextEditingController();
+ FocusNode commentFocusNode = FocusNode();
+ List commentTimes = [];
+ List commentHeader = [];
+ List commentName = [];
+ bool ascendingOrder = true;
+ int playlistCount = 0;
+
+ @override
+ void initState() {
+ super.initState();
+ _fetchSonglistData();
+ }
+
+ Future _fetchSonglistData() async {
+ try {
+ GetCommentBean bean1 = await getCommentApi().getComment(
+ musicId: '1',
+ pageNo: '0',
+ pageSize: '10',
+ Authorization: AppData().currentToken);
+ setState(() {
+ comments = bean1.rows!.map((rows) => rows.content!).toList();
+ commentTimes = bean1.rows!.map((rows) => rows.time!).toList();
+ commentHeader = bean1.rows!.map((rows) => rows.avatar!).toList();
+ commentName = bean1.rows!.map((rows) => rows.username!).toList();
+ playlistCount = comments.length;
+ });
+
+ } catch (error) {
+ if (error != null) {
+ print('Response data: $error');
+ } else {
+ print('Error fetching songlist data: $error');
+ }
+ }
+ }
+
+
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ // backgroundColor: Colors.transparent,
+ appBar: AppBar(
+ centerTitle: true,
+ backgroundColor: const Color(0xffF6FFD1),
+ title: const Text(
+ '评论(200)',
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 22
+ ),
+ ),
+ elevation: 0,
+ leading: IconButton(
+ onPressed: () {
+ Get.back();
+ },
+ icon: Image.asset(
+ "assets/img/back.png",
+ width: 25,
+ height: 25,
+ fit: BoxFit.contain,
+ ),
+ ),
+ ),
+ body: Column(
+ children: [
+ Container(
+ height: 80,
+ padding: const EdgeInsets.only(left: 20, right: 10),
+ decoration: BoxDecoration(
+ color: const Color(0xffF9F2AF),
+ borderRadius: BorderRadius.circular(20)
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Image.asset(
+ "assets/img/artist_pic.png",
+ width: 60,
+ height: 60,
+ fit: BoxFit.cover,
+ ),
+ ),
+ const SizedBox(width: 20,),
+ const Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(
+ "背对背拥抱",
+ maxLines: 1,
+ style: TextStyle(
+ color: Colors.black,
+ fontSize: 16,
+ fontWeight: FontWeight.w400),
+ ),
+ Text(
+ "林俊杰",
+ maxLines: 1,
+ style: TextStyle(color: Colors.black, fontSize: 14),
+ )
+ ],
+ ),
+ ],
+ ),
+ IconButton(
+ onPressed: () {},
+ icon: Image.asset(
+ "assets/img/music_pause.png",
+ width: 25,
+ height: 25,
+ fit: BoxFit.contain,
+ ),
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(10.0),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ const Text(
+ "评论区",
+ style: TextStyle(
+ fontSize: 18
+ ),
+ ),
+ Row(
+ children: [
+ const Text(
+ "时间",
+ style: TextStyle(
+ fontSize: 16
+ ),
+ ),
+ IconButton(
+ onPressed: () {
+ // setState(() {
+ // ascendingOrder = !ascendingOrder;
+ // comments.sort((a, b) {
+ // int compare = ascendingOrder
+ // ? commentTimes.indexOf(a).compareTo(
+ // commentTimes.indexOf(b))
+ // : commentTimes.indexOf(b).compareTo(
+ // commentTimes.indexOf(a));
+ // return compare;
+ // });
+ // });
+ },
+ icon: Image.asset(
+ ascendingOrder
+ ? "assets/img/commend_up.png"
+ : "assets/img/commend_down.png",
+ fit: BoxFit.contain,
+ ),
+ ),
+
+ ],
+ )
+ ],
+ ),
+ ),
+ /// 显示评论的区域
+ Expanded(
+ child:
+ ListView.builder(
+ itemCount: comments.length,
+ itemBuilder: (context, index) {
+ return ListTile(
+ title: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ CircleAvatar(
+ backgroundImage: NetworkImage(commentHeader[index])
+ ),
+ const SizedBox(width: 10,),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(commentName[index],
+ style: const TextStyle(fontSize: 18)),
+ const SizedBox(width: 8),
+ // Adjust the spacing between elements
+ Text(commentTimes[index],
+ style: const TextStyle(fontSize: 14),),
+ // Add the timestamp
+ ],
+ ),
+ ],
+ ), // Ad
+ Padding(
+ padding: const EdgeInsets.only(
+ left: 50, top: 10, bottom: 20),
+ child: Text(
+ comments[index],
+ style: const TextStyle(
+ fontSize: 18), // Customize the font size if needed
+ ),
+ ),
+ Container(
+ width: 560,
+ height: 2,
+ color: const Color(0xffE3F0ED),
+ )
+ ],
+ ),
+ );
+ },
+ ),
+ ),
+
+ ///输入框和提交按钮
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Expanded(
+ child: TextFieldColor(
+ controller: commentController,
+ hintText: '来发表你的评论吧!',
+ )
+ ),
+ const SizedBox(width: 8.0),
+ ElevatedButton(
+ onPressed: () async {
+ submitComment();
+ UniversalBean bean = await commentMusic().comment(
+ musicId: widget.initialSongIndex,
+ content: commentController.text,
+ Authorization: AppData().currentToken);
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: const Color(0xff429482),
+ // Change Colors.blue to your desired background color
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(
+ 10), // Adjust the radius as needed
+ ),
+ minimumSize: const Size(30, 44),
+ ),
+ child: const Text(
+ '提交',
+ style: TextStyle(
+ fontSize: 16
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ void submitComment() {
+ String comment = commentController.text;
+ if (comment.isNotEmpty) {
+ DateTime currentTime = DateTime.now();
+ String formattedTime = "${currentTime.year}/${currentTime
+ .month}/${currentTime.day} ${currentTime.hour}:${currentTime.minute}";
+
+ setState(() {
+ comments.add(comment);
+ commentTimes.add(formattedTime);
+ commentName.add(AppData().currentUsername);
+ commentHeader.add(AppData().currentAvatar);
+ commentController.clear();
+ playlistCount++;
+ });
+ }
+ }
+}
diff --git a/lib/view/home_view.dart b/lib/view/home_view.dart
new file mode 100644
index 0000000..0728ab3
--- /dev/null
+++ b/lib/view/home_view.dart
@@ -0,0 +1,400 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_swiper_view/flutter_swiper_view.dart';
+import 'package:get/get.dart';
+import 'package:music_player_miao/api/api_music_return.dart';
+import 'package:music_player_miao/models/search_bean.dart';
+import 'package:music_player_miao/view/commend_view.dart';
+import '../../view_model/home_view_model.dart';
+import '../common_widget/Song_widegt.dart';
+import '../common_widget/list_cell.dart';
+import 'music_view.dart';
+
+class HomeView extends StatefulWidget {
+ const HomeView({super.key});
+
+ @override
+ State createState() => _HomeViewState();
+}
+
+class _HomeViewState extends State {
+ final homeVM = Get.put(HomeViewModel());
+ final TextEditingController _controller = TextEditingController();
+ bool _isSearching = false;
+
+ ///轮播图
+ List