├── .gitignore ├── .metadata ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── dev │ │ │ │ └── mathulan │ │ │ │ └── flutter_music_player_ui │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── images ├── Screenshots │ ├── 1.jpeg │ ├── 2.jpeg │ └── 3.jpeg ├── nodata.png ├── offline.png └── placeholder.jpg ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── homePage.dart ├── main.dart ├── models.dart └── search.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 27321ebbad34b0a3fafe99fac037102196d655ff 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Packiyanathan Mathulan. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Music Player UI 2 | 3 | A Material designed music player developed in Flutter. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | 18 | ## ❤️ Contributing 19 | Bug reports and pull requests are welcome on GitHub 20 | 21 | ### Screenshots 22 | 23 | 24 | ### License 25 | 26 | This project is released under the [MIT license](LICENSE). You can use the code for any purpose, including commercial projects. 27 | 28 | [![license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 29 | 30 |
31 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "dev.mathulan.flutter_music_player_ui" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'androidx.test:runner:1.1.1' 60 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/java/dev/mathulan/flutter_music_player_ui/MainActivity.java: -------------------------------------------------------------------------------- 1 | package dev.mathulan.flutter_music_player_ui; 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity; 5 | import io.flutter.embedding.engine.FlutterEngine; 6 | import io.flutter.plugins.GeneratedPluginRegistrant; 7 | 8 | public class MainActivity extends FlutterActivity { 9 | @Override 10 | public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { 11 | GeneratedPluginRegistrant.registerWith(flutterEngine); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.5.0' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /images/Screenshots/1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/Screenshots/1.jpeg -------------------------------------------------------------------------------- /images/Screenshots/2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/Screenshots/2.jpeg -------------------------------------------------------------------------------- /images/Screenshots/3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/Screenshots/3.jpeg -------------------------------------------------------------------------------- /images/nodata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/nodata.png -------------------------------------------------------------------------------- /images/offline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/offline.png -------------------------------------------------------------------------------- /images/placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/images/placeholder.jpg -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 82 | install! 'cocoapods', :disable_input_output_paths => true 83 | 84 | post_install do |installer| 85 | installer.pods_project.targets.each do |target| 86 | target.build_configurations.each do |config| 87 | config.build_settings['ENABLE_BITCODE'] = 'NO' 88 | end 89 | end 90 | end 91 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = dev.mathulan.flutterMusicPlayerUi; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = dev.mathulan.flutterMusicPlayerUi; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = dev.mathulan.flutterMusicPlayerUi; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmathulan/Flutter-Music-Player-UI/a65813677207d89122716d539c08860f4f72f301/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | 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. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_music_player_ui 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/homePage.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_music_player_ui/search.dart'; 5 | import './models.dart'; 6 | 7 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 8 | import 'package:shared_preferences/shared_preferences.dart'; 9 | import 'package:url_launcher/url_launcher.dart'; 10 | 11 | class MyHomePage extends StatefulWidget { 12 | MyHomePage(); 13 | 14 | @override 15 | _MyHomePageState createState() => _MyHomePageState(); 16 | } 17 | 18 | String nowPlayingRadioName = radios[0].name; 19 | String nowPlayingRadioImage = radios[0].imageURL; 20 | String nowPlayingRadioDescription = radios[0].description; 21 | 22 | enum PlayerState { stopped, playing, paused, buffering } 23 | 24 | bool isAnimationCompleted = false, 25 | isLoading = true, 26 | isRunnerOut = false, 27 | favFilter = false, 28 | isMailValuable = true, 29 | isDescriptionValuable = true, 30 | isAdLoad = false; 31 | 32 | class _MyHomePageState extends State 33 | with TickerProviderStateMixin, WidgetsBindingObserver { 34 | AnimationController _verticalDragController, _runnerAnimationController; 35 | Animation _heightFactorAnimation, _positionAnimation; 36 | 37 | double fractionalValue, _height; 38 | bool isPlaying; 39 | PlayerState _playerState = PlayerState.stopped; 40 | 41 | TextEditingController eMailOrPhoneController = TextEditingController(); 42 | final TextEditingController descriptionController = TextEditingController(); 43 | 44 | FocusNode eMailOrPhoneFocusNode = FocusNode(); 45 | FocusNode descriptionFocusNode = FocusNode(); 46 | 47 | GlobalKey _scaffoldKey = GlobalKey(); 48 | 49 | List favList = []; 50 | List favIdList = ["100"]; 51 | 52 | @override 53 | void initState() { 54 | WidgetsBinding.instance.addObserver(this); 55 | 56 | _verticalDragController = 57 | AnimationController(vsync: this, duration: Duration(milliseconds: 300)); 58 | _runnerAnimationController = 59 | AnimationController(vsync: this, duration: Duration(milliseconds: 400)); 60 | 61 | _heightFactorAnimation = 62 | Tween(begin: 0.5, end: 0.88).animate(_verticalDragController) 63 | ..addStatusListener((status) { 64 | print(status); 65 | 66 | if (status == AnimationStatus.completed) { 67 | isAnimationCompleted = true; 68 | } else { 69 | isAnimationCompleted = false; 70 | } 71 | }); 72 | 73 | _positionAnimation = Tween(begin: -68.0, end: 16.0).animate( 74 | CurvedAnimation( 75 | parent: _runnerAnimationController, 76 | curve: Curves.bounceInOut, 77 | reverseCurve: Curves.easeInBack)); 78 | _positionAnimation.addStatusListener((status) { 79 | if (status == AnimationStatus.completed) { 80 | isRunnerOut = true; 81 | } else { 82 | isRunnerOut = false; 83 | } 84 | }); 85 | getFavId(); 86 | super.initState(); 87 | } 88 | 89 | @override 90 | void dispose() { 91 | WidgetsBinding.instance.removeObserver(this); 92 | _verticalDragController.dispose(); 93 | _runnerAnimationController.dispose(); 94 | super.dispose(); 95 | } 96 | 97 | @override 98 | void didChangeAppLifecycleState(AppLifecycleState state) { 99 | print('App State is $state'); 100 | } 101 | 102 | insertFavId() async { 103 | SharedPreferences _prefs = await SharedPreferences.getInstance(); 104 | _prefs.setStringList('favList', favIdList); 105 | } 106 | 107 | getFavId() async { 108 | SharedPreferences _prefs = await SharedPreferences.getInstance(); 109 | if (_prefs.getStringList("favList") != null) { 110 | setState(() { 111 | favIdList = _prefs.getStringList("favList"); 112 | }); 113 | } 114 | getFavList(); 115 | } 116 | 117 | checkFavList(id) { 118 | if (favIdList.contains(id.toString())) { 119 | setState(() { 120 | favIdList.remove(id.toString()); 121 | }); 122 | insertFavId(); 123 | getFavList(); 124 | } else { 125 | setState(() { 126 | favIdList.add(id.toString()); 127 | }); 128 | insertFavId(); 129 | getFavList(); 130 | } 131 | } 132 | 133 | getFavList() { 134 | favList.clear(); 135 | for (int i = 0; i < radios.length; i++) { 136 | for (int j = 0; j < favIdList.length; j++) { 137 | if (radios[i].id.toString() == favIdList[j]) { 138 | setState(() { 139 | favList.add(radios[i]); 140 | }); 141 | } 142 | } 143 | } 144 | } 145 | 146 | @override 147 | Widget build(BuildContext context) { 148 | _height = MediaQuery.of(context).size.height; 149 | return Scaffold( 150 | key: _scaffoldKey, 151 | backgroundColor: Colors.white, 152 | body: AnimatedBuilder( 153 | animation: _verticalDragController, 154 | builder: (context, child) { 155 | return Stack( 156 | children: [ 157 | FractionallySizedBox( 158 | widthFactor: 1, 159 | heightFactor: 0.53, 160 | child: FadeInImage.assetNetwork( 161 | placeholder: 'images/placeholder.jpg', 162 | image: 163 | 'https://img.wallpaper.sc/android/images/2160x1920/android-2160x1920-wallpaper_01752.jpg', 164 | fit: BoxFit.cover, 165 | ), 166 | ), 167 | Column( 168 | children: [ 169 | SizedBox(height: MediaQuery.of(context).padding.top + 8.0), 170 | buildTopToolBar(), 171 | ], 172 | ), 173 | Align( 174 | alignment: Alignment.bottomCenter, 175 | child: FractionallySizedBox( 176 | heightFactor: _heightFactorAnimation.value, 177 | widthFactor: 1, 178 | child: GestureDetector( 179 | onVerticalDragUpdate: handleVerticalDrag, 180 | onVerticalDragEnd: handleVerticalEnd, 181 | child: Container( 182 | decoration: BoxDecoration( 183 | color: Colors.white, 184 | borderRadius: BorderRadius.vertical( 185 | top: Radius.circular(16.0))), 186 | child: Column( 187 | children: [ 188 | buildMediaController(), 189 | Flexible( 190 | child: Container( 191 | padding: EdgeInsets.only(bottom: 8), 192 | // height: _height * 0.93 - 120, 193 | child: buildListView())) 194 | ], 195 | ), 196 | ), 197 | ), 198 | ), 199 | ), 200 | ], 201 | ); 202 | }, 203 | )); 204 | } 205 | 206 | void handleVerticalDrag(DragUpdateDetails updateDetails) { 207 | fractionalValue = updateDetails.primaryDelta / _height; 208 | _verticalDragController.value = 209 | _verticalDragController.value - 4 * fractionalValue; 210 | } 211 | 212 | void handleVerticalEnd(DragEndDetails endDetails) { 213 | if (_verticalDragController.value >= 0.5) { 214 | _verticalDragController.fling(velocity: 1); 215 | } else { 216 | _verticalDragController.fling(velocity: -1); 217 | } 218 | } 219 | 220 | Widget buildTopToolBar() { 221 | return Padding( 222 | padding: const EdgeInsets.symmetric(horizontal: 16.0), 223 | child: Row( 224 | children: [ 225 | Container( 226 | decoration: 227 | BoxDecoration(color: Colors.white30, shape: BoxShape.circle), 228 | child: IconButton( 229 | icon: Icon( 230 | Icons.favorite, 231 | color: favFilter ? Colors.deepOrange[300] : Colors.white, 232 | ), 233 | onPressed: () { 234 | getFavId(); 235 | setState(() { 236 | favFilter = !favFilter; 237 | }); 238 | }, 239 | ), 240 | ), 241 | Spacer(), 242 | Container( 243 | decoration: 244 | BoxDecoration(color: Colors.white30, shape: BoxShape.circle), 245 | child: IconButton( 246 | icon: Icon( 247 | Icons.shop_two, 248 | color: Colors.white, 249 | ), 250 | onPressed: () async {}, 251 | ), 252 | ), 253 | SizedBox( 254 | width: 16.0, 255 | ), 256 | Container( 257 | decoration: 258 | BoxDecoration(color: Colors.white30, shape: BoxShape.circle), 259 | child: IconButton( 260 | icon: Icon( 261 | Icons.search, 262 | color: Colors.white, 263 | ), 264 | onPressed: () async { 265 | final result = await showSearch( 266 | context: context, 267 | delegate: DataSearch(mainList: radios)); // 268 | for (int i = 0; i < radios.length; i++) { 269 | if (radios[i].id.toString() == result) { 270 | setState(() { 271 | nowPlayingRadioName = radios[i].name; 272 | nowPlayingRadioImage = radios[i].imageURL; 273 | nowPlayingRadioDescription = radios[i].description; 274 | changeStation(radios[i]); 275 | }); 276 | } 277 | } 278 | }, 279 | ), 280 | ), 281 | ], 282 | ), 283 | ); 284 | } 285 | 286 | Widget buildMediaController() { 287 | return Column( 288 | children: [ 289 | GestureDetector( 290 | onTap: () { 291 | print((isAnimationCompleted)); 292 | setState(() { 293 | if (isAnimationCompleted) { 294 | _verticalDragController.reverse(); 295 | } else { 296 | _verticalDragController.forward(); 297 | } 298 | }); 299 | }, 300 | child: Container( 301 | color: Colors.white10, 302 | width: MediaQuery.of(context).size.width * 0.9, 303 | padding: EdgeInsets.symmetric(vertical: 8), 304 | child: Center( 305 | child: Container( 306 | decoration: BoxDecoration( 307 | color: Colors.grey[300], 308 | borderRadius: BorderRadius.circular(16)), 309 | height: 6, 310 | width: 48, 311 | ), 312 | ), 313 | ), 314 | ), 315 | Padding( 316 | padding: EdgeInsets.fromLTRB(16, 0, 0, 0), 317 | child: Row( 318 | children: [ 319 | Expanded( 320 | child: ListTile( 321 | isThreeLine: true, 322 | title: Text( 323 | '$nowPlayingRadioName', 324 | style: TextStyle( 325 | fontSize: 26, 326 | letterSpacing: -0.3, 327 | color: Theme.of(context).primaryColor), 328 | ), 329 | subtitle: Text( 330 | '$nowPlayingRadioDescription', 331 | style: TextStyle( 332 | fontSize: 20, 333 | letterSpacing: -0.3, 334 | color: Colors.grey[400]), 335 | ), 336 | trailing: Container( 337 | decoration: BoxDecoration( 338 | shape: BoxShape.circle, 339 | color: Theme.of(context).primaryColor), 340 | child: _playerState == PlayerState.buffering 341 | ? SizedBox( 342 | height: 52, 343 | width: 52, 344 | child: SpinKitCircle( 345 | color: Colors.white, 346 | size: 36, 347 | )) 348 | : IconButton( 349 | iconSize: 36, 350 | icon: AnimatedIcon( 351 | progress: _runnerAnimationController, 352 | icon: AnimatedIcons.play_pause, 353 | color: Colors.white, 354 | ), 355 | onPressed: () { 356 | if (_playerState == PlayerState.playing) { 357 | _stop(); 358 | } 359 | if (_playerState == PlayerState.paused || 360 | _playerState == PlayerState.stopped) { 361 | _play(); 362 | } 363 | setState(() { 364 | isRunnerOut 365 | ? _runnerAnimationController.reverse() 366 | : _runnerAnimationController.forward(); 367 | }); 368 | }, 369 | ), 370 | ), 371 | ), 372 | ), 373 | ], 374 | ), 375 | ), 376 | Divider( 377 | height: 8, 378 | color: Colors.black54, 379 | ), 380 | _verticalDragController.value > 0.8 381 | ? Container( 382 | padding: EdgeInsets.symmetric(horizontal: 20), 383 | height: 50, 384 | child: Row( 385 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 386 | children: [ 387 | Container( 388 | width: MediaQuery.of(context).size.width - 140, 389 | child: Text( 390 | 'Request for your favorites radio', 391 | style: TextStyle(color: Colors.teal, fontSize: 16), 392 | ), 393 | ), 394 | RaisedButton( 395 | color: Colors.blueGrey[300], 396 | textColor: Colors.white, 397 | child: Text( 398 | 'Request', 399 | ), 400 | onPressed: () { 401 | showDialog( 402 | barrierDismissible: false, 403 | context: context, 404 | builder: (context) { 405 | return Dialog( 406 | shape: RoundedRectangleBorder( 407 | borderRadius: BorderRadius.circular(16)), 408 | child: requestForm(), 409 | ); 410 | }); 411 | }, 412 | ) 413 | ], 414 | ), 415 | ) 416 | : SizedBox() 417 | ], 418 | ); 419 | } 420 | 421 | Widget buildListView() { 422 | return favList.length < 1 && favFilter 423 | ? Column( 424 | mainAxisAlignment: MainAxisAlignment.center, 425 | children: [ 426 | Flexible( 427 | child: Image.asset( 428 | 'images/nodata.png', 429 | fit: BoxFit.contain, 430 | ), 431 | ), 432 | Padding( 433 | padding: const EdgeInsets.all(8.0), 434 | child: Text( 435 | 'You don\'t have any favorites yet. All your favorites will show up here.', 436 | textAlign: TextAlign.center, 437 | ), 438 | ), 439 | OutlineButton( 440 | child: Padding( 441 | padding: const EdgeInsets.all(8.0), 442 | child: Text('Show All'), 443 | ), 444 | onPressed: () { 445 | setState(() { 446 | favFilter = !favFilter; 447 | }); 448 | }, 449 | ) 450 | ], 451 | ) 452 | : ListView.builder( 453 | physics: _verticalDragController.value == 0 454 | ? NeverScrollableScrollPhysics() 455 | : null, 456 | itemCount: favFilter ? favList.length : radios.length, 457 | itemBuilder: (context, index) { 458 | return favFilter 459 | ? listTileView(index, favList) 460 | : listTileView(index, radios); 461 | }, 462 | ); 463 | } 464 | 465 | Widget listTileView(index, list) { 466 | return GestureDetector( 467 | onTap: () { 468 | setState(() { 469 | nowPlayingRadioName = list[index].name; 470 | nowPlayingRadioImage = list[index].imageURL; 471 | nowPlayingRadioDescription = list[index].description; 472 | changeStation(list[index]); 473 | }); 474 | }, 475 | child: Container( 476 | color: Colors.white.withOpacity(0), 477 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 8), 478 | width: double.infinity, 479 | child: Row( 480 | children: [ 481 | Container( 482 | height: 68, 483 | child: AspectRatio( 484 | aspectRatio: 4 / 3, 485 | child: FadeInImage.assetNetwork( 486 | placeholder: 'images/placeholder.jpg', 487 | image: 488 | 'https://img.wallpaper.sc/android/images/2160x1920/android-2160x1920-wallpaper_01752.jpg', 489 | fit: BoxFit.cover, 490 | )), 491 | ), 492 | Container( 493 | width: MediaQuery.of(context).size.width - 200, 494 | padding: const EdgeInsets.all(8.0), 495 | child: Text( 496 | '${list[index].name}', 497 | style: TextStyle(color: Theme.of(context).primaryColor), 498 | ), 499 | ), 500 | Spacer(), 501 | IconButton( 502 | iconSize: 28, 503 | icon: Icon( 504 | Icons.favorite, 505 | color: favIdList.contains(list[index].id.toString()) 506 | ? Colors.deepOrange[300] 507 | : Colors.grey[400], 508 | ), 509 | onPressed: () { 510 | checkFavList(list[index].id); 511 | setState(() { 512 | list[index].isFav = list[index].isFav ? false : true; 513 | }); 514 | }, 515 | ) 516 | ], 517 | ), 518 | ), 519 | ); 520 | } 521 | 522 | Widget requestForm() { 523 | return Padding( 524 | padding: const EdgeInsets.all(16.0), 525 | child: Form( 526 | child: Column( 527 | crossAxisAlignment: CrossAxisAlignment.start, 528 | mainAxisSize: MainAxisSize.min, 529 | children: [ 530 | SizedBox( 531 | height: 36, 532 | ), 533 | Padding( 534 | padding: const EdgeInsets.all( 535 | 16, 536 | ), 537 | child: TextFormField( 538 | textInputAction: TextInputAction.next, 539 | focusNode: eMailOrPhoneFocusNode, 540 | controller: eMailOrPhoneController, 541 | keyboardType: TextInputType.emailAddress, 542 | decoration: InputDecoration( 543 | labelText: 'E-Mail Address', 544 | errorText: 545 | isMailValuable ? null : 'Please Enter a Valid E-mail', 546 | isDense: true, 547 | border: OutlineInputBorder(), 548 | helperText: '* Not required field'), 549 | onFieldSubmitted: (term) { 550 | eMailOrPhoneFocusNode.unfocus(); 551 | FocusScope.of(context).requestFocus(descriptionFocusNode); 552 | }), 553 | ), 554 | Padding( 555 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 8), 556 | child: TextFormField( 557 | keyboardType: TextInputType.multiline, 558 | focusNode: descriptionFocusNode, 559 | controller: descriptionController, 560 | maxLines: 3, 561 | autocorrect: false, 562 | decoration: InputDecoration( 563 | labelText: 'Requesting Radio Name', 564 | errorText: isDescriptionValuable 565 | ? null 566 | : 'Description must be more than 5 character', 567 | isDense: true, 568 | border: OutlineInputBorder(), 569 | alignLabelWithHint: true), 570 | ), 571 | ), 572 | Padding( 573 | padding: EdgeInsets.only(top: 8, right: 16, left: 16), 574 | child: Row( 575 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 576 | children: [ 577 | RaisedButton( 578 | shape: RoundedRectangleBorder( 579 | borderRadius: BorderRadius.circular(20)), 580 | color: Colors.blueGrey[300], 581 | child: Padding( 582 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 583 | child: Text( 584 | 'Cancel', 585 | style: TextStyle(color: Colors.white, fontSize: 16), 586 | ), 587 | ), 588 | onPressed: () async { 589 | Navigator.pop(context); 590 | }, 591 | ), 592 | RaisedButton( 593 | shape: RoundedRectangleBorder( 594 | borderRadius: BorderRadius.circular(20)), 595 | color: Theme.of(context).primaryColor, 596 | child: Padding( 597 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 598 | child: Text( 599 | 'Send', 600 | style: TextStyle(color: Colors.white, fontSize: 16), 601 | ), 602 | ), 603 | onPressed: () async { 604 | Navigator.pop(context); 605 | _launchURL(descriptionController.text); 606 | 607 | _scaffoldKey.currentState.showSnackBar(SnackBar( 608 | backgroundColor: Colors.transparent, 609 | elevation: 0, 610 | // (SnackBar( 611 | content: Container( 612 | height: 40, 613 | margin: EdgeInsets.only(bottom: 76), 614 | decoration: BoxDecoration( 615 | color: Colors.blueGrey[50], 616 | borderRadius: BorderRadius.circular(100)), 617 | child: Center( 618 | child: Text( 619 | 'Message has been sent', 620 | style: TextStyle( 621 | color: Theme.of(context).primaryColor, 622 | fontSize: 16), 623 | ))), 624 | duration: Duration(seconds: 4), 625 | )); 626 | }, 627 | ), 628 | ], 629 | ), 630 | ) 631 | ], 632 | ), 633 | ), 634 | ); 635 | } 636 | 637 | Future _play() async {} 638 | 639 | void changeStation(radio) async {} 640 | 641 | Future _stop() async {} 642 | 643 | _launchURL(String body) async { 644 | var url = 645 | 'mailto:p.mathulan@gmail.com?subject=New Feature Request&body=$body'; 646 | if (await canLaunch(url)) { 647 | await launch(url); 648 | } else { 649 | throw 'Could not launch $url'; 650 | } 651 | } 652 | } 653 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'homePage.dart'; 3 | 4 | void main() { 5 | runApp(MyApp()); 6 | } 7 | 8 | //=> runApp(MyApp()); 9 | 10 | class MyApp extends StatelessWidget { 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | debugShowCheckedModeBanner: false, 15 | title: 'Flutter Music Player', 16 | theme: ThemeData( 17 | primarySwatch: Colors.blue, 18 | primaryColor: Color(0Xff34385e), 19 | ), 20 | home: MyHomePage(), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/models.dart: -------------------------------------------------------------------------------- 1 | class Radio { 2 | int id; 3 | bool isFav; 4 | String name, imageURL, description, radioURI; 5 | Radio( 6 | {this.id, 7 | this.isFav, 8 | this.name, 9 | this.imageURL, 10 | this.description, 11 | this.radioURI}); 12 | } 13 | 14 | List radios = [ 15 | Radio( 16 | id: 1, 17 | description: 'Sample Music Description', 18 | name: 'Sooriyan FM', 19 | isFav: true, 20 | radioURI: '', 21 | imageURL: ''), 22 | Radio( 23 | id: 2, 24 | description: 'Sample Music Description', 25 | name: 'Radio City Live', 26 | isFav: true, 27 | radioURI: '', 28 | imageURL: ''), 29 | Radio( 30 | id: 3, 31 | description: 'Sample Music Description', 32 | name: 'Kadhal Radio', 33 | isFav: true, 34 | radioURI: '', 35 | imageURL: ''), 36 | Radio( 37 | id: 4, 38 | description: 'Sample Music Description', 39 | name: 'Radio Mirchi Tamil FM', 40 | isFav: true, 41 | radioURI: '', 42 | imageURL: ''), 43 | Radio( 44 | id: 5, 45 | description: 'Sample Music Description', 46 | name: 'Suryan 93.5 FM', 47 | isFav: true, 48 | radioURI: '', 49 | imageURL: ''), 50 | Radio( 51 | id: 6, 52 | description: 'Sample Music Description', 53 | name: 'Chennai FM Rainbow', 54 | isFav: true, 55 | radioURI: '', 56 | imageURL: ''), 57 | Radio( 58 | id: 7, 59 | description: 'Sample Music Description', 60 | name: 'AR Rahman Radio', 61 | isFav: true, 62 | radioURI: '', 63 | imageURL: ''), 64 | Radio( 65 | id: 8, 66 | description: 'Sample Music Description', 67 | name: 'AR Rahman Lite Radio', 68 | isFav: true, 69 | radioURI: '', 70 | imageURL: ''), 71 | Radio( 72 | id: 9, 73 | description: 'Sample Music Description', 74 | name: 'SPB Radio', 75 | isFav: true, 76 | radioURI: '', 77 | imageURL: ''), 78 | Radio( 79 | id: 10, 80 | description: 'Sample Music Description', 81 | name: 'KJ Yesudas Radio', 82 | isFav: true, 83 | radioURI: '', 84 | imageURL: ''), 85 | Radio( 86 | id: 11, 87 | description: 'Sample Music Description', 88 | name: 'Unnikrishnan Hits', 89 | isFav: true, 90 | radioURI: '', 91 | imageURL: ''), 92 | Radio( 93 | id: 12, 94 | description: 'Sample Music Description', 95 | name: 'Harris Jayaraj Radio', 96 | isFav: true, 97 | radioURI: '', 98 | imageURL: ''), 99 | Radio( 100 | id: 13, 101 | description: 'Sample Music Description', 102 | name: 'Anirudh Radio', 103 | isFav: true, 104 | radioURI: '', 105 | imageURL: ''), 106 | Radio( 107 | id: 14, 108 | description: 'Sample Music Description', 109 | name: 'Shakthi FM', 110 | isFav: true, 111 | radioURI: '', 112 | imageURL: ''), 113 | Radio( 114 | id: 15, 115 | description: 'Sample Music Description', 116 | name: 'Tamil Lite Radio', 117 | isFav: true, 118 | radioURI: '', 119 | imageURL: ''), 120 | ]; 121 | -------------------------------------------------------------------------------- /lib/search.dart: -------------------------------------------------------------------------------- 1 | import 'dart:core' as prefix0; 2 | import 'dart:core'; 3 | import 'package:url_launcher/url_launcher.dart'; 4 | 5 | import 'package:flutter/material.dart'; 6 | 7 | class DataSearch extends SearchDelegate { 8 | final mainList; 9 | 10 | TextEditingController eMailOrPhoneController = TextEditingController(); 11 | final TextEditingController descriptionController = TextEditingController(); 12 | 13 | FocusNode eMailOrPhoneFocusNode = FocusNode(); 14 | FocusNode descriptionFocusNode = FocusNode(); 15 | bool isDescriptionValuable = true; 16 | 17 | DataSearch({ 18 | this.mainList, 19 | }); 20 | 21 | var suggestionList; 22 | 23 | @override 24 | List buildActions(BuildContext context) { 25 | return [ 26 | IconButton( 27 | icon: Icon(Icons.clear), 28 | onPressed: () { 29 | query = ""; 30 | showSuggestions(context); 31 | }, 32 | ) 33 | ]; 34 | } 35 | 36 | @override 37 | Widget buildLeading(BuildContext context) { 38 | return IconButton( 39 | icon: Icon( 40 | Icons.arrow_back, 41 | ), 42 | onPressed: () { 43 | close(context, null); 44 | }, 45 | ); 46 | } 47 | 48 | @override 49 | Widget buildResults(BuildContext context) { 50 | return ListView.builder( 51 | itemCount: 52 | suggestionList.isEmpty ? mainList.length : suggestionList.length, 53 | itemBuilder: (context, index) { 54 | return ListTile( 55 | title: Text( 56 | suggestionList.isEmpty 57 | ? mainList[index].name 58 | : suggestionList[index].name, 59 | style: TextStyle(color: Colors.grey), 60 | ), 61 | ); 62 | }, 63 | ); 64 | } 65 | 66 | @override 67 | Widget buildSuggestions(BuildContext context) { 68 | suggestionList = query.isEmpty 69 | ? mainList 70 | : mainList.where((p) { 71 | var listItemText = p.name.toString().toLowerCase(); 72 | return listItemText.contains(query.toLowerCase()); 73 | }).toList(); 74 | if (suggestionList.length == 0) return emptyResultWidget(context); 75 | return ListView.builder( 76 | itemBuilder: (context, index) { 77 | return ListTile( 78 | title: RichText( 79 | text: TextSpan( 80 | text: suggestionList[index].name.toString().substring( 81 | 0, suggestionList[index].name.toLowerCase().indexOf(query)), 82 | style: TextStyle( 83 | fontWeight: FontWeight.w500, 84 | color: Colors.grey, 85 | fontSize: 16), 86 | children: [ 87 | TextSpan( 88 | text: suggestionList[index].name.toString().substring( 89 | suggestionList[index].name.toLowerCase().indexOf(query), 90 | suggestionList[index] 91 | .name 92 | .toLowerCase() 93 | .indexOf(query) + 94 | query.length), 95 | style: TextStyle( 96 | color: Theme.of(context).primaryColor, 97 | fontWeight: FontWeight.w600), 98 | ), 99 | TextSpan( 100 | text: suggestionList[index].name.toString().substring( 101 | suggestionList[index] 102 | .name 103 | .toLowerCase() 104 | .indexOf(query) + 105 | query.length), 106 | style: TextStyle( 107 | color: Colors.grey, fontWeight: FontWeight.w500), 108 | ) 109 | ]), 110 | ), 111 | onTap: () { 112 | showResults(context); 113 | close(context, suggestionList[index].id.toString()); 114 | }, 115 | ); 116 | }, 117 | itemCount: suggestionList.length, 118 | ); 119 | } 120 | 121 | Widget emptyResultWidget(BuildContext context) { 122 | descriptionController.text = query; 123 | return Column( 124 | mainAxisAlignment: MainAxisAlignment.center, 125 | children: [ 126 | Flexible( 127 | child: AspectRatio( 128 | aspectRatio: 1, 129 | child: Image.asset( 130 | 'images/nodata.png', 131 | fit: BoxFit.contain, 132 | ), 133 | ), 134 | ), 135 | Padding( 136 | padding: const EdgeInsets.all(8.0), 137 | child: Text( 138 | 'Your searching result is empty. you can now request for your favorites radio.', 139 | textAlign: TextAlign.center, 140 | ), 141 | ), 142 | OutlineButton( 143 | child: Padding( 144 | padding: const EdgeInsets.all(8.0), 145 | child: Text('Request'), 146 | ), 147 | onPressed: () { 148 | close(context, null); 149 | showDialog( 150 | barrierDismissible: false, 151 | context: context, 152 | builder: (context) { 153 | return Dialog( 154 | shape: RoundedRectangleBorder( 155 | borderRadius: BorderRadius.circular(16)), 156 | child: requestForm(context), 157 | ); 158 | }); 159 | }, 160 | ), 161 | ], 162 | ); 163 | } 164 | 165 | Widget requestForm(BuildContext context) { 166 | return Padding( 167 | padding: const EdgeInsets.all(16.0), 168 | child: Form( 169 | child: Column( 170 | crossAxisAlignment: CrossAxisAlignment.start, 171 | mainAxisSize: MainAxisSize.min, 172 | // crossAxisAlignment: CrossAxisAlignment.start, 173 | children: [ 174 | SizedBox( 175 | height: 36, 176 | ), 177 | Padding( 178 | padding: const EdgeInsets.all( 179 | 16, 180 | ), 181 | child: TextFormField( 182 | textInputAction: TextInputAction.next, 183 | focusNode: eMailOrPhoneFocusNode, 184 | controller: eMailOrPhoneController, 185 | keyboardType: TextInputType.emailAddress, 186 | decoration: InputDecoration( 187 | labelText: 'E-Mail Address', 188 | isDense: true, 189 | border: OutlineInputBorder(), 190 | helperText: '* Not required field'), 191 | onFieldSubmitted: (term) { 192 | eMailOrPhoneFocusNode.unfocus(); 193 | FocusScope.of(context).requestFocus(descriptionFocusNode); 194 | }), 195 | ), 196 | Padding( 197 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 8), 198 | child: TextFormField( 199 | keyboardType: TextInputType.multiline, 200 | focusNode: descriptionFocusNode, 201 | controller: descriptionController, 202 | maxLines: 3, 203 | autocorrect: false, 204 | decoration: InputDecoration( 205 | labelText: 'Requesting Radio Name', 206 | errorText: isDescriptionValuable 207 | ? null 208 | : 'Description must be more than 5 character', 209 | isDense: true, 210 | border: OutlineInputBorder(), 211 | alignLabelWithHint: true), 212 | ), 213 | ), 214 | Padding( 215 | padding: EdgeInsets.only(top: 8, right: 16, left: 16), 216 | child: Row( 217 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 218 | children: [ 219 | RaisedButton( 220 | shape: RoundedRectangleBorder( 221 | borderRadius: BorderRadius.circular(20)), 222 | color: Colors.blueGrey[300], 223 | child: Padding( 224 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 225 | child: Text( 226 | 'Cancel', 227 | style: TextStyle(color: Colors.white, fontSize: 16), 228 | ), 229 | ), 230 | onPressed: () async { 231 | Navigator.pop(context); 232 | }, 233 | ), 234 | RaisedButton( 235 | shape: RoundedRectangleBorder( 236 | borderRadius: BorderRadius.circular(20)), 237 | color: Theme.of(context).primaryColor, 238 | child: Padding( 239 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 240 | child: Text( 241 | 'Send', 242 | style: TextStyle(color: Colors.white, fontSize: 16), 243 | ), 244 | ), 245 | onPressed: () async { 246 | Navigator.pop(context); 247 | _launchURL(descriptionController.text); 248 | }, 249 | ), 250 | ], 251 | ), 252 | ) 253 | ], 254 | ), 255 | ), 256 | ); 257 | } 258 | 259 | _launchURL(String body) async { 260 | var url = 261 | 'mailto:p.mathulan@gmail.com?subject=New Radio Request&body=$body'; 262 | if (await canLaunch(url)) { 263 | await launch(url); 264 | } else { 265 | throw 'Could not launch $url'; 266 | } 267 | } 268 | } 269 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.3" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_spinkit: 73 | dependency: "direct main" 74 | description: 75 | name: flutter_spinkit 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "4.1.1+1" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | flutter_web_plugins: 85 | dependency: transitive 86 | description: flutter 87 | source: sdk 88 | version: "0.0.0" 89 | image: 90 | dependency: transitive 91 | description: 92 | name: image 93 | url: "https://pub.dartlang.org" 94 | source: hosted 95 | version: "2.1.4" 96 | matcher: 97 | dependency: transitive 98 | description: 99 | name: matcher 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "0.12.6" 103 | meta: 104 | dependency: transitive 105 | description: 106 | name: meta 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.1.8" 110 | path: 111 | dependency: transitive 112 | description: 113 | name: path 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.6.4" 117 | pedantic: 118 | dependency: transitive 119 | description: 120 | name: pedantic 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.8.0+1" 124 | petitparser: 125 | dependency: transitive 126 | description: 127 | name: petitparser 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "2.4.0" 131 | plugin_platform_interface: 132 | dependency: transitive 133 | description: 134 | name: plugin_platform_interface 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.0.1" 138 | quiver: 139 | dependency: transitive 140 | description: 141 | name: quiver 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "2.0.5" 145 | shared_preferences: 146 | dependency: "direct main" 147 | description: 148 | name: shared_preferences 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "0.5.6" 152 | shared_preferences_macos: 153 | dependency: transitive 154 | description: 155 | name: shared_preferences_macos 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.0.1+3" 159 | shared_preferences_platform_interface: 160 | dependency: transitive 161 | description: 162 | name: shared_preferences_platform_interface 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.0.1" 166 | shared_preferences_web: 167 | dependency: transitive 168 | description: 169 | name: shared_preferences_web 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.1.2+2" 173 | sky_engine: 174 | dependency: transitive 175 | description: flutter 176 | source: sdk 177 | version: "0.0.99" 178 | source_span: 179 | dependency: transitive 180 | description: 181 | name: source_span 182 | url: "https://pub.dartlang.org" 183 | source: hosted 184 | version: "1.5.5" 185 | stack_trace: 186 | dependency: transitive 187 | description: 188 | name: stack_trace 189 | url: "https://pub.dartlang.org" 190 | source: hosted 191 | version: "1.9.3" 192 | stream_channel: 193 | dependency: transitive 194 | description: 195 | name: stream_channel 196 | url: "https://pub.dartlang.org" 197 | source: hosted 198 | version: "2.0.0" 199 | string_scanner: 200 | dependency: transitive 201 | description: 202 | name: string_scanner 203 | url: "https://pub.dartlang.org" 204 | source: hosted 205 | version: "1.0.5" 206 | term_glyph: 207 | dependency: transitive 208 | description: 209 | name: term_glyph 210 | url: "https://pub.dartlang.org" 211 | source: hosted 212 | version: "1.1.0" 213 | test_api: 214 | dependency: transitive 215 | description: 216 | name: test_api 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "0.2.11" 220 | typed_data: 221 | dependency: transitive 222 | description: 223 | name: typed_data 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "1.1.6" 227 | url_launcher: 228 | dependency: "direct main" 229 | description: 230 | name: url_launcher 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "5.4.1" 234 | url_launcher_macos: 235 | dependency: transitive 236 | description: 237 | name: url_launcher_macos 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "0.0.1+2" 241 | url_launcher_platform_interface: 242 | dependency: transitive 243 | description: 244 | name: url_launcher_platform_interface 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "1.0.5" 248 | url_launcher_web: 249 | dependency: transitive 250 | description: 251 | name: url_launcher_web 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "0.1.0+2" 255 | vector_math: 256 | dependency: transitive 257 | description: 258 | name: vector_math 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "2.0.8" 262 | xml: 263 | dependency: transitive 264 | description: 265 | name: xml 266 | url: "https://pub.dartlang.org" 267 | source: hosted 268 | version: "3.5.0" 269 | sdks: 270 | dart: ">=2.5.0 <3.0.0" 271 | flutter: ">=1.12.13+hotfix.4 <2.0.0" 272 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_music_player_ui 2 | description: A Material designed music player developed in Flutter. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | url_launcher: ^5.4.1 27 | shared_preferences: ^0.5.6 28 | flutter_spinkit: ^4.1.1 29 | 30 | dev_dependencies: 31 | flutter_test: 32 | sdk: flutter 33 | 34 | 35 | # For information on the generic Dart part of this file, see the 36 | # following page: https://dart.dev/tools/pub/pubspec 37 | 38 | # The following section is specific to Flutter. 39 | flutter: 40 | 41 | # The following line ensures that the Material Icons font is 42 | # included with your application, so that you can use the icons in 43 | # the material Icons class. 44 | uses-material-design: true 45 | 46 | # To add assets to your application, add an assets section, like this: 47 | # assets: 48 | # - images/a_dot_burr.jpeg 49 | # - images/a_dot_ham.jpeg 50 | assets: 51 | - images/ 52 | # An image asset can refer to one or more resolution-specific "variants", see 53 | # https://flutter.dev/assets-and-images/#resolution-aware. 54 | 55 | # For details regarding adding assets from package dependencies, see 56 | # https://flutter.dev/assets-and-images/#from-packages 57 | 58 | # To add custom fonts to your application, add a fonts section here, 59 | # in this "flutter" section. Each entry in this list should have a 60 | # "family" key with the font family name, and a "fonts" key with a 61 | # list giving the asset and other descriptors for the font. For 62 | # example: 63 | # fonts: 64 | # - family: Schyler 65 | # fonts: 66 | # - asset: fonts/Schyler-Regular.ttf 67 | # - asset: fonts/Schyler-Italic.ttf 68 | # style: italic 69 | # - family: Trajan Pro 70 | # fonts: 71 | # - asset: fonts/TrajanPro.ttf 72 | # - asset: fonts/TrajanPro_Bold.ttf 73 | # weight: 700 74 | # 75 | # For details regarding fonts from package dependencies, 76 | # see https://flutter.dev/custom-fonts/#from-packages 77 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_music_player_ui/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------