├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── winamp
│ │ │ │ └── MainActivity.kt
│ │ └── 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
└── settings_aar.gradle
├── assets
├── DS-DIGI.TTF
├── DS-DIGIB.TTF
├── DS-DIGII.TTF
├── DS-DIGIT.TTF
├── Wakka Wakka.mp3
├── a.html
├── bars.png
├── btn1.png
├── ezgif-6-e714f06d0ca0.gif
├── gridtexture.png
├── logo.png
├── logo2.png
├── music.mp3
├── music_bars.gif
├── musicbars.png
├── pixer.ttf
├── sound.mp3
└── xp.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── 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
├── helpers
│ └── audio.dart
├── main.dart
├── views
│ └── player.dart
└── widgets
│ ├── awesome_slider
│ ├── awesome_slider_main.dart
│ ├── awesome_slider_painter.dart
│ ├── mobile_slider_main.dart
│ └── mobile_slider_painter.dart
│ ├── button.dart
│ ├── controlLabel.dart
│ ├── desktop
│ ├── desktopUI.dart
│ ├── navLine.dart
│ ├── navLogo.dart
│ └── navbar.dart
│ ├── mainInfo.dart
│ ├── miniControls.dart
│ ├── miniEQButton.dart
│ ├── mobile
│ ├── MobileTrackBar.dart
│ ├── mobileInfo.dart
│ ├── mobileSeek.dart
│ └── mobileUI.dart
│ ├── sidebarText.dart
│ ├── textControlButton.dart
│ └── trackNameBar.dart
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── 1.png
├── 2.png
├── beautifulerrors.png
└── winamp.png
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.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 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Exceptions to above rules.
44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
45 |
--------------------------------------------------------------------------------
/.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: 401690a64f7780ca55c763ebf2e0b449b1180c2e
8 | channel: master
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](http://hits.dwyl.com/ishandeveloper/WinAMP-Flutter)
2 |
3 |
4 |
5 |
6 | # WinAMP
7 |
8 | Almost a decade ago, most of us used **Winamp** for listening to music on our PC devices. It was one of the first music player apps, that was compatible with most modern file types mp3, mp4, avi etc and it featured a wide variety of amazing skins, along with a radio and a browser.
9 |
10 | This is just a small attempt to recreate that same experience using @flutter .
11 |
12 | ### DEMO LINK :
13 |
14 |
winamp.ishandeveloper.com
15 |
16 | ### Screenshots
17 | Hell, even the errors look impressive :D
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | ##### Made with ♥ by ishandeveloper
27 |
28 | [](https://github.com/ishandeveloper)
29 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/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 plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.winamp"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/winamp/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.winamp
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/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 | // Copyright 2014 The Flutter Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | include ':app'
6 |
7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8 | def properties = new Properties()
9 |
10 | assert localPropertiesFile.exists()
11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12 |
13 | def flutterSdkPath = properties.getProperty("flutter.sdk")
14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
16 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/DS-DIGI.TTF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/DS-DIGI.TTF
--------------------------------------------------------------------------------
/assets/DS-DIGIB.TTF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/DS-DIGIB.TTF
--------------------------------------------------------------------------------
/assets/DS-DIGII.TTF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/DS-DIGII.TTF
--------------------------------------------------------------------------------
/assets/DS-DIGIT.TTF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/DS-DIGIT.TTF
--------------------------------------------------------------------------------
/assets/Wakka Wakka.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/Wakka Wakka.mp3
--------------------------------------------------------------------------------
/assets/a.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/assets/bars.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/bars.png
--------------------------------------------------------------------------------
/assets/btn1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/btn1.png
--------------------------------------------------------------------------------
/assets/ezgif-6-e714f06d0ca0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/ezgif-6-e714f06d0ca0.gif
--------------------------------------------------------------------------------
/assets/gridtexture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/gridtexture.png
--------------------------------------------------------------------------------
/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/logo.png
--------------------------------------------------------------------------------
/assets/logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/logo2.png
--------------------------------------------------------------------------------
/assets/music.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/music.mp3
--------------------------------------------------------------------------------
/assets/music_bars.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/music_bars.gif
--------------------------------------------------------------------------------
/assets/musicbars.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/musicbars.png
--------------------------------------------------------------------------------
/assets/pixer.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/pixer.ttf
--------------------------------------------------------------------------------
/assets/sound.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/sound.mp3
--------------------------------------------------------------------------------
/assets/xp.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/assets/xp.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 "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | FRAMEWORK_SEARCH_PATHS = (
293 | "$(inherited)",
294 | "$(PROJECT_DIR)/Flutter",
295 | );
296 | INFOPLIST_FILE = Runner/Info.plist;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | LIBRARY_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "$(PROJECT_DIR)/Flutter",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.winamp;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
411 | TARGETED_DEVICE_FAMILY = "1,2";
412 | VALIDATE_PRODUCT = YES;
413 | };
414 | name = Release;
415 | };
416 | 97C147061CF9000F007C117D /* Debug */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423 | ENABLE_BITCODE = NO;
424 | FRAMEWORK_SEARCH_PATHS = (
425 | "$(inherited)",
426 | "$(PROJECT_DIR)/Flutter",
427 | );
428 | INFOPLIST_FILE = Runner/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | LIBRARY_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "$(PROJECT_DIR)/Flutter",
433 | );
434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.winamp;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
438 | SWIFT_VERSION = 5.0;
439 | VERSIONING_SYSTEM = "apple-generic";
440 | };
441 | name = Debug;
442 | };
443 | 97C147071CF9000F007C117D /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | CLANG_ENABLE_MODULES = YES;
449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
450 | ENABLE_BITCODE = NO;
451 | FRAMEWORK_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | INFOPLIST_FILE = Runner/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
457 | LIBRARY_SEARCH_PATHS = (
458 | "$(inherited)",
459 | "$(PROJECT_DIR)/Flutter",
460 | );
461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.winamp;
462 | PRODUCT_NAME = "$(TARGET_NAME)";
463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
464 | SWIFT_VERSION = 5.0;
465 | VERSIONING_SYSTEM = "apple-generic";
466 | };
467 | name = Release;
468 | };
469 | /* End XCBuildConfiguration section */
470 |
471 | /* Begin XCConfigurationList section */
472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
473 | isa = XCConfigurationList;
474 | buildConfigurations = (
475 | 97C147031CF9000F007C117D /* Debug */,
476 | 97C147041CF9000F007C117D /* Release */,
477 | 249021D3217E4FDB00AE95B9 /* Profile */,
478 | );
479 | defaultConfigurationIsVisible = 0;
480 | defaultConfigurationName = Release;
481 | };
482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
483 | isa = XCConfigurationList;
484 | buildConfigurations = (
485 | 97C147061CF9000F007C117D /* Debug */,
486 | 97C147071CF9000F007C117D /* Release */,
487 | 249021D4217E4FDB00AE95B9 /* Profile */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/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.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/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 | winamp
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"
2 |
--------------------------------------------------------------------------------
/lib/helpers/audio.dart:
--------------------------------------------------------------------------------
1 | // ignore: avoid_web_libraries_in_flutterc
2 | // ignore: avoid_web_libraries_in_flutter
3 | import 'dart:js' as js;
4 | import 'package:flutter/foundation.dart' show kIsWeb;
5 |
6 | void initAudio(String path) {
7 | if (kIsWeb) {
8 | js.context.callMethod('initiateAudio', [path]);
9 | } else {}
10 | }
11 |
12 | void playAudio() {
13 | if (kIsWeb) {
14 | js.context.callMethod('playAudio');
15 | } else {}
16 | }
17 |
18 | void pauseAudio() {
19 | if (kIsWeb) {
20 | js.context.callMethod('pauseAudio');
21 | } else {}
22 | }
23 |
24 | void seekAudio(int pos) {
25 | if (kIsWeb) {
26 | js.context.callMethod('seekAudio', [pos]);
27 | } else {}
28 | }
29 |
30 | void setAudioVolume(double volume) {
31 | if (kIsWeb) {
32 | js.context.callMethod('volAudio', [volume / 100]);
33 | } else {}
34 | }
35 |
36 | void stopAudio() {
37 | if (kIsWeb) {
38 | js.context.callMethod('stopAudio');
39 | } else {}
40 | }
41 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:winamp/views/player.dart';
3 |
4 | void main() {
5 | runApp(MyApp());
6 | }
7 |
8 | class MyApp extends StatelessWidget {
9 | // This widget is the root of your application.
10 | @override
11 | Widget build(BuildContext context) {
12 | return MaterialApp(
13 | title: 'WinAMP Music Player',
14 | debugShowCheckedModeBanner: false,
15 | theme: ThemeData(
16 | scaffoldBackgroundColor: Colors.black,
17 | primarySwatch: Colors.blue,
18 | visualDensity: VisualDensity.adaptivePlatformDensity,
19 | ),
20 | home: Player(),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/views/player.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:winamp/widgets/desktop/desktopUI.dart';
3 | import 'package:winamp/widgets/mobile/mobileUI.dart';
4 |
5 | class Player extends StatefulWidget {
6 | @override
7 | _PlayerState createState() => _PlayerState();
8 | }
9 |
10 | class _PlayerState extends State {
11 | @override
12 | Widget build(BuildContext context) {
13 | return LayoutBuilder(
14 | builder: (context, constraints) {
15 | if (constraints.maxWidth > 768) {
16 | return DesktopUI();
17 | }
18 | return MobileUI();
19 | },
20 | );
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lib/widgets/awesome_slider/awesome_slider_main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'dart:ui';
3 | import 'package:flutter/material.dart';
4 | import 'awesome_slider_painter.dart';
5 |
6 | class CustomSlider extends StatefulWidget {
7 | CustomSlider({
8 | this.value,
9 | this.min,
10 | this.max,
11 | this.onChanged,
12 | this.child,
13 | this.sliderWidth,
14 | this.thumbSize,
15 | this.thumbColor = Colors.grey,
16 | this.roundedRectangleThumbRadius = 0.0,
17 | this.inactiveLineColor = Colors.blue,
18 | this.inactiveLineStroke,
19 | this.activeLineColor = Colors.blue,
20 | this.activeLineStroke,
21 | this.topLeftShadow = false,
22 | this.topLeftShadowColor = Colors.blueGrey,
23 | this.topLeftShadowBlur,
24 | this.bottomRightShadow = false,
25 | this.bottomRightShadowColor = Colors.blueGrey,
26 | this.bottomRightShadowBlur,
27 | }) : assert(value != null),
28 | assert(min != null),
29 | assert(max != null),
30 | assert(min <= max),
31 | assert(value >= min && value <= max);
32 |
33 | /// Value of the Slider Position
34 | /// (Value!=null)
35 | /// (value >= min && value <= max)
36 |
37 | final double value;
38 |
39 | /// minimum value for the Slider
40 | /// (min != null)
41 | /// (min <= max)
42 | final double min;
43 |
44 | /// maximum value for the Slider
45 | /// (max != null)
46 | final double max;
47 |
48 | /// Called when the user starts selecting a new value for the slider.
49 | final ValueChanged onChanged;
50 |
51 | /// Provide a child Widget to the Slider Thumb
52 | final Widget child;
53 |
54 | /// Total Width of the Slider.
55 | /// Default width will be the Canvas Width with a difference of 40px
56 | final double sliderWidth;
57 |
58 | /// Size of the thumb
59 | /// Default value will be a 90px ratio of the original Canvas
60 | final double thumbSize;
61 |
62 | ///Colour of the thumb
63 | ///Default colour is grey Colour
64 | final Color thumbColor;
65 |
66 | /// Give this radius to convert the Rectangle into a Rounded Rectangle
67 | /// Increase in radius will make the rectangle into a circle
68 | final double roundedRectangleThumbRadius;
69 |
70 | ///The color for the inactive portion of the slider track.
71 | ///Default colour is Blue Colour
72 | final Color inactiveLineColor;
73 |
74 | ///The stroke value for the inactive portion of the slider track.
75 | ///Default stroke value is 4.0
76 | ///Value for inactiveLineStroke = activeLineStroke unless given different values for both
77 | final double inactiveLineStroke;
78 |
79 | ///The color for the active portion of the slider track.
80 | ///Default colour is Blue Colour
81 | final Color activeLineColor;
82 |
83 | ///The stroke value for the active portion of the slider track.
84 | ///Default stroke value is 4.0
85 | ///Value for activeLineStroke = inactiveLineStroke unless given different values for both
86 | final double activeLineStroke;
87 |
88 | ///Give true value if a Shadow required on Top - Left of the thumb
89 | final bool topLeftShadow;
90 |
91 | ///Colour of shadow of Top - Left of the thumb
92 | ///Default is Blue - Grey
93 | final Color topLeftShadowColor;
94 |
95 | ///MaskFilter blur value for shadow of Top - Left of the thumb
96 | ///MaskFilter.blur(BlurStyle.normal, 3.0)
97 | final MaskFilter topLeftShadowBlur;
98 |
99 | ///Give true value if a Shadow required on Bottom - Right of the thumb
100 | final bool bottomRightShadow;
101 |
102 | ///Colour of shadow of Bottom - Right of the thumb
103 | ///Default is Blue - Grey
104 | final Color bottomRightShadowColor;
105 |
106 | ///MaskFilter blur value for shadow of Top - Left of the thumb
107 | ///MaskFilter.blur(BlurStyle.normal, 3.0)
108 | final MaskFilter bottomRightShadowBlur;
109 |
110 | @override
111 | _CustomSliderState createState() => _CustomSliderState();
112 | }
113 |
114 | class _CustomSliderState extends State {
115 | double sliderXCoordinatePositionNow = 0.0;
116 |
117 | double _strokeOfInactiveLine() => (widget.inactiveLineStroke == null)
118 | ? (widget.activeLineStroke == null) ? 4.0 : widget.activeLineStroke
119 | : widget.inactiveLineStroke;
120 |
121 | double _strokeOfActiveLine() => (widget.activeLineStroke == null)
122 | ? (widget.inactiveLineStroke == null) ? 4.0 : widget.inactiveLineStroke
123 | : widget.activeLineStroke;
124 |
125 | MaskFilter _topLeftShadowBlur() => (widget.topLeftShadowBlur == null)
126 | ? MaskFilter.blur(BlurStyle.normal, 3.0)
127 | : widget.topLeftShadowBlur;
128 |
129 | MaskFilter _bottomRightShadowBlur() => (widget.bottomRightShadowBlur == null)
130 | ? MaskFilter.blur(BlurStyle.normal, 3.0)
131 | : widget.bottomRightShadowBlur;
132 |
133 | double _incrementValueForThumb() =>
134 | (widget.value == 0.0) ? widget.min : widget.value - widget.min;
135 |
136 | double _lineLengthForPixel() => _sliderWidth() - _sliderHeight();
137 | double _userValueForPixel() => widget.max - widget.min;
138 | double _pixelDivision() => _lineLengthForPixel() / _userValueForPixel();
139 |
140 | double _sliderChildPosition() => _incrementValueForThumb() * _pixelDivision();
141 |
142 | double _sliderWidth() {
143 | double userInputWidth = widget.sliderWidth;
144 | double screenWidth = window.physicalSize.width;
145 | double pixelRatio = window.devicePixelRatio;
146 | double sliderWidth = (userInputWidth == null)
147 | ? ((screenWidth / pixelRatio) - 40.0)
148 | : userInputWidth;
149 | return sliderWidth;
150 |
151 | }
152 |
153 | double _sliderHeight() {
154 | double userInputHeight = widget.thumbSize;
155 | double screenHeight = window.physicalSize.height;
156 | double pixelRatio = window.devicePixelRatio;
157 | double multiplicationFactor = (90 / 805.3333334);
158 | double sliderHeight = (userInputHeight == null)
159 | ? ((screenHeight / pixelRatio) * multiplicationFactor)
160 | : userInputHeight;
161 | return sliderHeight.roundToDouble();
162 | // return 25;
163 | }
164 |
165 | void _onDragUpdate(DragUpdateDetails dragUpdateDetails) {
166 | Offset localDragUpdate = dragUpdateDetails.localPosition;
167 | double xCoordinate;
168 | (localDragUpdate.dx < 0)
169 | ? xCoordinate = 0
170 | : (localDragUpdate.dx > _sliderWidth())
171 | ? xCoordinate = _sliderWidth()
172 | : xCoordinate = localDragUpdate.dx;
173 | setState(() {
174 | sliderXCoordinatePositionNow = xCoordinate;
175 | });
176 | }
177 |
178 | void _onDragStart(DragStartDetails dragStartDetails) {
179 | Offset localDragStart = dragStartDetails.localPosition;
180 | double xCoordinate;
181 | (localDragStart.dx < 0)
182 | ? xCoordinate = 0
183 | : (localDragStart.dx > _sliderWidth())
184 | ? xCoordinate = _sliderWidth()
185 | : xCoordinate = localDragStart.dx;
186 | setState(() {
187 | sliderXCoordinatePositionNow = xCoordinate;
188 | });
189 | }
190 |
191 | void _value() {
192 | double incrementValue = sliderXCoordinatePositionNow / _pixelDivision();
193 | double value = (incrementValue > _userValueForPixel())
194 | ? _userValueForPixel()
195 | : incrementValue;
196 | double userValue = value + widget.min;
197 | if (widget.onChanged != null) {
198 | widget.onChanged(userValue);
199 | }
200 | }
201 |
202 | @override
203 | Widget build(BuildContext context) {
204 | return GestureDetector(
205 | behavior: HitTestBehavior.translucent,
206 | onHorizontalDragUpdate: (DragUpdateDetails updateDetails) {
207 | _onDragUpdate(updateDetails);
208 | _value();
209 | },
210 | onHorizontalDragStart: (DragStartDetails startDetails) {
211 | _onDragStart(startDetails);
212 | _value();
213 | },
214 | child: Container(
215 | padding: EdgeInsets.all(0.0),
216 | child: Stack(
217 | children: [
218 | Container(
219 | height: _sliderHeight(),
220 | width: _sliderWidth(),
221 | child: CustomPaint(
222 | painter: CustomSliderPaint(
223 | sliderLength: _sliderWidth(),
224 | thumbSize: _sliderHeight(),
225 | thumbColor: widget.thumbColor,
226 | value: _incrementValueForThumb(),
227 | min: widget.min,
228 | max: widget.max,
229 | inactiveLineColor: widget.inactiveLineColor,
230 | inactiveLineStroke: _strokeOfInactiveLine(),
231 | activeLineColor: widget.activeLineColor,
232 | activeLineStroke: _strokeOfActiveLine(),
233 | currentTouchPosition: sliderXCoordinatePositionNow,
234 | roundedThumbRadius: widget.roundedRectangleThumbRadius,
235 | topLeftShadowColor: widget.topLeftShadowColor,
236 | bottomRightShadowColor: widget.bottomRightShadowColor,
237 | topLeftShadowBlurFactor: _topLeftShadowBlur(),
238 | bottomRightShadowBlurFactor: _bottomRightShadowBlur(),
239 | bottomRightShadow: widget.bottomRightShadow,
240 | topLeftShadow: widget.topLeftShadow,
241 | ),
242 | ),
243 | ),
244 | Positioned(
245 | height: _sliderHeight(),
246 | width: _sliderHeight(),
247 | left: _sliderChildPosition(),
248 | child: Container(
249 | height: double.infinity,
250 | width: double.infinity,
251 | child: widget.child,
252 | ),
253 | ),
254 | ],
255 | ),
256 | ),
257 | );
258 | }
259 | }
260 |
--------------------------------------------------------------------------------
/lib/widgets/awesome_slider/awesome_slider_painter.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class CustomSliderPaint extends CustomPainter {
6 | CustomSliderPaint({
7 | @required this.sliderLength,
8 | @required this.thumbSize,
9 | @required this.thumbColor,
10 | @required this.value,
11 | @required this.min,
12 | @required this.max,
13 | @required this.roundedThumbRadius,
14 | @required this.inactiveLineColor,
15 | @required this.inactiveLineStroke,
16 | @required this.currentTouchPosition,
17 | @required this.activeLineColor,
18 | @required this.activeLineStroke,
19 | @required this.topLeftShadowColor,
20 | @required this.bottomRightShadowColor,
21 | @required this.topLeftShadowBlurFactor,
22 | @required this.bottomRightShadowBlurFactor,
23 | @required this.topLeftShadow,
24 | @required this.bottomRightShadow,
25 | });
26 | final double sliderLength;
27 | final double thumbSize;
28 | final Color thumbColor;
29 | final double value;
30 | final double min;
31 | final double max;
32 | final double roundedThumbRadius;
33 | final Color inactiveLineColor;
34 | final double inactiveLineStroke;
35 | final double currentTouchPosition;
36 | final Color activeLineColor;
37 | final double activeLineStroke;
38 | final Color topLeftShadowColor;
39 | final Color bottomRightShadowColor;
40 | final MaskFilter bottomRightShadowBlurFactor;
41 | final MaskFilter topLeftShadowBlurFactor;
42 | final bool topLeftShadow;
43 | final bool bottomRightShadow;
44 |
45 | @override
46 | void paint(Canvas canvas, Size size) {
47 | double roundedRectangleTopLeftShadowShift = 13.0;
48 | double roundedRectangleBottomRightShadowShift = 1.5;
49 | double _increment() {
50 | double lineLengthForPixel = sliderLength - thumbSize;
51 | double userValueForPixel = max - min;
52 | double pixelDivision = lineLengthForPixel / userValueForPixel;
53 | return value * pixelDivision;
54 | }
55 |
56 | /// Inactive Line Paint
57 |
58 | Path inactiveLinePath = Path();
59 | Paint inactiveLinePaint = Paint()
60 | ..color = inactiveLineColor
61 | ..style = PaintingStyle.stroke
62 | ..strokeWidth = 30;
63 | inactiveLinePath.moveTo(0.0, thumbSize / 2);
64 | inactiveLinePath.lineTo(sliderLength, thumbSize / 2);
65 | canvas.drawPath(inactiveLinePath, inactiveLinePaint);
66 |
67 | /// Active Line Paint
68 |
69 | Path activeLinePath = Path();
70 | Paint activeLinePaint = Paint()
71 | ..color = activeLineColor
72 | ..style = PaintingStyle.stroke
73 | ..strokeWidth = 32;
74 | activeLinePath.moveTo(0.0, thumbSize / 2);
75 | activeLinePath.lineTo(currentTouchPosition, thumbSize / 2);
76 | canvas.drawPath(activeLinePath, activeLinePaint);
77 |
78 | /// Rounded Rectangle Top Left Shadow Paint
79 |
80 | Path roundedRectangleTopLeftShadow = Path();
81 | Paint roundedRectangleTopLeftShadowPaint = Paint()
82 | ..color = topLeftShadowColor
83 | ..maskFilter = topLeftShadowBlurFactor;
84 |
85 | roundedRectangleTopLeftShadow.addRRect(RRect.fromLTRBR(
86 | 0.0 - roundedRectangleTopLeftShadowShift + _increment(),
87 | 0.0 - roundedRectangleTopLeftShadowShift,
88 | thumbSize - roundedRectangleTopLeftShadowShift + _increment(),
89 | thumbSize - roundedRectangleTopLeftShadowShift,
90 | Radius.circular(roundedThumbRadius)));
91 | if (topLeftShadow == true)
92 | canvas.drawPath(
93 | roundedRectangleTopLeftShadow, roundedRectangleTopLeftShadowPaint);
94 |
95 | /// Rounded Rectangle Bottom Right Shadow Paint
96 |
97 | Path roundedRectangleBottomRightShadow = Path();
98 | Paint roundedRectangleBottomRightShadowPaint = Paint()
99 | ..color = bottomRightShadowColor
100 | ..maskFilter = bottomRightShadowBlurFactor;
101 | roundedRectangleBottomRightShadow.addRRect(RRect.fromLTRBR(
102 | 0.0 + roundedRectangleBottomRightShadowShift + _increment(),
103 | 0.0 + roundedRectangleBottomRightShadowShift,
104 | thumbSize + roundedRectangleBottomRightShadowShift + _increment(),
105 | thumbSize + roundedRectangleBottomRightShadowShift,
106 | Radius.circular(roundedThumbRadius)));
107 | if (bottomRightShadow == true)
108 | canvas.drawPath(roundedRectangleBottomRightShadow,
109 | roundedRectangleBottomRightShadowPaint);
110 |
111 | /// Rounded Rectangle Thumb Paint
112 |
113 | Path roundedRectangle = Path();
114 | Paint roundedRectanglePaint = Paint()..color = thumbColor;
115 |
116 | roundedRectangle.addRRect(RRect.fromLTRBR(
117 | -5.0 + _increment(),
118 | 0.0,
119 | thumbSize+5 + _increment(),
120 | thumbSize,
121 | Radius.circular(roundedThumbRadius)));
122 | canvas.drawPath(roundedRectangle, roundedRectanglePaint);
123 | }
124 |
125 | @override
126 | bool shouldRepaint(CustomPainter oldDelegate) {
127 | return true;
128 | }
129 | }
130 |
--------------------------------------------------------------------------------
/lib/widgets/awesome_slider/mobile_slider_main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'dart:ui';
3 | import 'package:flutter/material.dart';
4 | import 'mobile_slider_painter.dart';
5 |
6 | class MobileSlider extends StatefulWidget {
7 | MobileSlider({
8 | this.value,
9 | this.min,
10 | this.max,
11 | this.onChanged,
12 | this.child,
13 | this.sliderWidth,
14 | this.thumbSize,
15 | this.thumbColor = Colors.grey,
16 | this.roundedRectangleThumbRadius = 0.0,
17 | this.inactiveLineColor = Colors.blue,
18 | this.inactiveLineStroke,
19 | this.activeLineColor = Colors.blue,
20 | this.activeLineStroke,
21 | this.topLeftShadow = false,
22 | this.topLeftShadowColor = Colors.blueGrey,
23 | this.topLeftShadowBlur,
24 | this.bottomRightShadow = false,
25 | this.bottomRightShadowColor = Colors.blueGrey,
26 | this.bottomRightShadowBlur,
27 | }) : assert(value != null),
28 | assert(min != null),
29 | assert(max != null),
30 | assert(min <= max),
31 | assert(value >= min && value <= max);
32 |
33 | /// Value of the Slider Position
34 | /// (Value!=null)
35 | /// (value >= min && value <= max)
36 |
37 | final double value;
38 |
39 | /// minimum value for the Slider
40 | /// (min != null)
41 | /// (min <= max)
42 | final double min;
43 |
44 | /// maximum value for the Slider
45 | /// (max != null)
46 | final double max;
47 |
48 | /// Called when the user starts selecting a new value for the slider.
49 | final ValueChanged onChanged;
50 |
51 | /// Provide a child Widget to the Slider Thumb
52 | final Widget child;
53 |
54 | /// Total Width of the Slider.
55 | /// Default width will be the Canvas Width with a difference of 40px
56 | final double sliderWidth;
57 |
58 | /// Size of the thumb
59 | /// Default value will be a 90px ratio of the original Canvas
60 | final double thumbSize;
61 |
62 | ///Colour of the thumb
63 | ///Default colour is grey Colour
64 | final Color thumbColor;
65 |
66 | /// Give this radius to convert the Rectangle into a Rounded Rectangle
67 | /// Increase in radius will make the rectangle into a circle
68 | final double roundedRectangleThumbRadius;
69 |
70 | ///The color for the inactive portion of the slider track.
71 | ///Default colour is Blue Colour
72 | final Color inactiveLineColor;
73 |
74 | ///The stroke value for the inactive portion of the slider track.
75 | ///Default stroke value is 4.0
76 | ///Value for inactiveLineStroke = activeLineStroke unless given different values for both
77 | final double inactiveLineStroke;
78 |
79 | ///The color for the active portion of the slider track.
80 | ///Default colour is Blue Colour
81 | final Color activeLineColor;
82 |
83 | ///The stroke value for the active portion of the slider track.
84 | ///Default stroke value is 4.0
85 | ///Value for activeLineStroke = inactiveLineStroke unless given different values for both
86 | final double activeLineStroke;
87 |
88 | ///Give true value if a Shadow required on Top - Left of the thumb
89 | final bool topLeftShadow;
90 |
91 | ///Colour of shadow of Top - Left of the thumb
92 | ///Default is Blue - Grey
93 | final Color topLeftShadowColor;
94 |
95 | ///MaskFilter blur value for shadow of Top - Left of the thumb
96 | ///MaskFilter.blur(BlurStyle.normal, 3.0)
97 | final MaskFilter topLeftShadowBlur;
98 |
99 | ///Give true value if a Shadow required on Bottom - Right of the thumb
100 | final bool bottomRightShadow;
101 |
102 | ///Colour of shadow of Bottom - Right of the thumb
103 | ///Default is Blue - Grey
104 | final Color bottomRightShadowColor;
105 |
106 | ///MaskFilter blur value for shadow of Top - Left of the thumb
107 | ///MaskFilter.blur(BlurStyle.normal, 3.0)
108 | final MaskFilter bottomRightShadowBlur;
109 |
110 | @override
111 | _CustomSliderState createState() => _CustomSliderState();
112 | }
113 |
114 | class _CustomSliderState extends State {
115 | double sliderXCoordinatePositionNow = 0.0;
116 |
117 | double _strokeOfInactiveLine() => (widget.inactiveLineStroke == null)
118 | ? (widget.activeLineStroke == null) ? 4.0 : widget.activeLineStroke
119 | : widget.inactiveLineStroke;
120 |
121 | double _strokeOfActiveLine() => (widget.activeLineStroke == null)
122 | ? (widget.inactiveLineStroke == null) ? 4.0 : widget.inactiveLineStroke
123 | : widget.activeLineStroke;
124 |
125 | MaskFilter _topLeftShadowBlur() => (widget.topLeftShadowBlur == null)
126 | ? MaskFilter.blur(BlurStyle.normal, 3.0)
127 | : widget.topLeftShadowBlur;
128 |
129 | MaskFilter _bottomRightShadowBlur() => (widget.bottomRightShadowBlur == null)
130 | ? MaskFilter.blur(BlurStyle.normal, 3.0)
131 | : widget.bottomRightShadowBlur;
132 |
133 | double _incrementValueForThumb() =>
134 | (widget.value == 0.0) ? widget.min : widget.value - widget.min;
135 |
136 | double _lineLengthForPixel() => _sliderWidth() - _sliderHeight();
137 | double _userValueForPixel() => widget.max - widget.min;
138 | double _pixelDivision() => _lineLengthForPixel() / _userValueForPixel();
139 |
140 | double _sliderChildPosition() => _incrementValueForThumb() * _pixelDivision();
141 |
142 | double _sliderWidth() {
143 | double userInputWidth = widget.sliderWidth;
144 | double screenWidth = window.physicalSize.width;
145 | double pixelRatio = window.devicePixelRatio;
146 | double sliderWidth = (userInputWidth == null)
147 | ? ((screenWidth / pixelRatio) - 40.0)
148 | : userInputWidth;
149 | return sliderWidth;
150 |
151 | }
152 |
153 | double _sliderHeight() {
154 | double userInputHeight = widget.thumbSize;
155 | double screenHeight = window.physicalSize.height;
156 | double pixelRatio = window.devicePixelRatio;
157 | double multiplicationFactor = (90 / 805.3333334);
158 | double sliderHeight = (userInputHeight == null)
159 | ? ((screenHeight / pixelRatio) * multiplicationFactor)
160 | : userInputHeight;
161 | return sliderHeight.roundToDouble();
162 | // return 25;
163 | }
164 |
165 | void _onDragUpdate(DragUpdateDetails dragUpdateDetails) {
166 | Offset localDragUpdate = dragUpdateDetails.localPosition;
167 | double xCoordinate;
168 | (localDragUpdate.dx < 0)
169 | ? xCoordinate = 0
170 | : (localDragUpdate.dx > _sliderWidth())
171 | ? xCoordinate = _sliderWidth()
172 | : xCoordinate = localDragUpdate.dx;
173 | setState(() {
174 | sliderXCoordinatePositionNow = xCoordinate;
175 | });
176 | }
177 |
178 | void _onDragStart(DragStartDetails dragStartDetails) {
179 | Offset localDragStart = dragStartDetails.localPosition;
180 | double xCoordinate;
181 | (localDragStart.dx < 0)
182 | ? xCoordinate = 0
183 | : (localDragStart.dx > _sliderWidth())
184 | ? xCoordinate = _sliderWidth()
185 | : xCoordinate = localDragStart.dx;
186 | setState(() {
187 | sliderXCoordinatePositionNow = xCoordinate;
188 | });
189 | }
190 |
191 | void _value() {
192 | double incrementValue = sliderXCoordinatePositionNow / _pixelDivision();
193 | double value = (incrementValue > _userValueForPixel())
194 | ? _userValueForPixel()
195 | : incrementValue;
196 | double userValue = value + widget.min;
197 | if (widget.onChanged != null) {
198 | widget.onChanged(userValue);
199 | }
200 | }
201 |
202 | @override
203 | Widget build(BuildContext context) {
204 | return GestureDetector(
205 | behavior: HitTestBehavior.translucent,
206 | onHorizontalDragUpdate: (DragUpdateDetails updateDetails) {
207 | _onDragUpdate(updateDetails);
208 | _value();
209 | },
210 | onHorizontalDragStart: (DragStartDetails startDetails) {
211 | _onDragStart(startDetails);
212 | _value();
213 | },
214 | child: Container(
215 | padding: EdgeInsets.all(0.0),
216 | child: Stack(
217 | children: [
218 | Container(
219 | height: _sliderHeight(),
220 | width: _sliderWidth(),
221 | child: CustomPaint(
222 | painter: MobileSliderPaint(
223 | sliderLength: _sliderWidth(),
224 | thumbSize: _sliderHeight(),
225 | thumbColor: widget.thumbColor,
226 | value: _incrementValueForThumb(),
227 | min: widget.min,
228 | max: widget.max,
229 | inactiveLineColor: widget.inactiveLineColor,
230 | inactiveLineStroke: _strokeOfInactiveLine(),
231 | activeLineColor: widget.activeLineColor,
232 | activeLineStroke: _strokeOfActiveLine(),
233 | currentTouchPosition: sliderXCoordinatePositionNow,
234 | roundedThumbRadius: widget.roundedRectangleThumbRadius,
235 | topLeftShadowColor: widget.topLeftShadowColor,
236 | bottomRightShadowColor: widget.bottomRightShadowColor,
237 | topLeftShadowBlurFactor: _topLeftShadowBlur(),
238 | bottomRightShadowBlurFactor: _bottomRightShadowBlur(),
239 | bottomRightShadow: widget.bottomRightShadow,
240 | topLeftShadow: widget.topLeftShadow,
241 | ),
242 | ),
243 | ),
244 | Positioned(
245 | height: _sliderHeight(),
246 | width: _sliderHeight(),
247 | left: _sliderChildPosition(),
248 | child: Container(
249 | height: double.infinity,
250 | width: double.infinity,
251 | child: widget.child,
252 | ),
253 | ),
254 | ],
255 | ),
256 | ),
257 | );
258 | }
259 | }
260 |
--------------------------------------------------------------------------------
/lib/widgets/awesome_slider/mobile_slider_painter.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class MobileSliderPaint extends CustomPainter {
6 | MobileSliderPaint({
7 | @required this.sliderLength,
8 | @required this.thumbSize,
9 | @required this.thumbColor,
10 | @required this.value,
11 | @required this.min,
12 | @required this.max,
13 | @required this.roundedThumbRadius,
14 | @required this.inactiveLineColor,
15 | @required this.inactiveLineStroke,
16 | @required this.currentTouchPosition,
17 | @required this.activeLineColor,
18 | @required this.activeLineStroke,
19 | @required this.topLeftShadowColor,
20 | @required this.bottomRightShadowColor,
21 | @required this.topLeftShadowBlurFactor,
22 | @required this.bottomRightShadowBlurFactor,
23 | @required this.topLeftShadow,
24 | @required this.bottomRightShadow,
25 | });
26 | final double sliderLength;
27 | final double thumbSize;
28 | final Color thumbColor;
29 | final double value;
30 | final double min;
31 | final double max;
32 | final double roundedThumbRadius;
33 | final Color inactiveLineColor;
34 | final double inactiveLineStroke;
35 | final double currentTouchPosition;
36 | final Color activeLineColor;
37 | final double activeLineStroke;
38 | final Color topLeftShadowColor;
39 | final Color bottomRightShadowColor;
40 | final MaskFilter bottomRightShadowBlurFactor;
41 | final MaskFilter topLeftShadowBlurFactor;
42 | final bool topLeftShadow;
43 | final bool bottomRightShadow;
44 |
45 | @override
46 | void paint(Canvas canvas, Size size) {
47 | double roundedRectangleTopLeftShadowShift = 13.0;
48 | double roundedRectangleBottomRightShadowShift = 1.5;
49 | double _increment() {
50 | double lineLengthForPixel = sliderLength - thumbSize;
51 | double userValueForPixel = max - min;
52 | double pixelDivision = lineLengthForPixel / userValueForPixel;
53 | return value * pixelDivision;
54 | }
55 |
56 | /// Inactive Line Paint
57 |
58 | Path inactiveLinePath = Path();
59 | Paint inactiveLinePaint = Paint()
60 | ..color = inactiveLineColor
61 | ..style = PaintingStyle.stroke
62 | ..strokeWidth = 20;
63 | inactiveLinePath.moveTo(0.0, thumbSize / 2);
64 | inactiveLinePath.lineTo(sliderLength, thumbSize / 2);
65 | canvas.drawPath(inactiveLinePath, inactiveLinePaint);
66 |
67 | /// Active Line Paint
68 |
69 | Path activeLinePath = Path();
70 | Paint activeLinePaint = Paint()
71 | ..color = activeLineColor
72 | ..style = PaintingStyle.stroke
73 | ..strokeWidth = 20;
74 | activeLinePath.moveTo(0.0, thumbSize / 2);
75 | activeLinePath.lineTo(currentTouchPosition, thumbSize / 2);
76 | canvas.drawPath(activeLinePath, activeLinePaint);
77 |
78 | /// Rounded Rectangle Top Left Shadow Paint
79 |
80 | Path roundedRectangleTopLeftShadow = Path();
81 | Paint roundedRectangleTopLeftShadowPaint = Paint()
82 | ..color = topLeftShadowColor
83 | ..maskFilter = topLeftShadowBlurFactor;
84 |
85 | roundedRectangleTopLeftShadow.addRRect(RRect.fromLTRBR(
86 | 0.0 - roundedRectangleTopLeftShadowShift + _increment(),
87 | 0.0 - roundedRectangleTopLeftShadowShift,
88 | thumbSize - roundedRectangleTopLeftShadowShift + _increment(),
89 | thumbSize - roundedRectangleTopLeftShadowShift,
90 | Radius.circular(roundedThumbRadius)));
91 | if (topLeftShadow == true)
92 | canvas.drawPath(
93 | roundedRectangleTopLeftShadow, roundedRectangleTopLeftShadowPaint);
94 |
95 | /// Rounded Rectangle Bottom Right Shadow Paint
96 |
97 | Path roundedRectangleBottomRightShadow = Path();
98 | Paint roundedRectangleBottomRightShadowPaint = Paint()
99 | ..color = bottomRightShadowColor
100 | ..maskFilter = bottomRightShadowBlurFactor;
101 | roundedRectangleBottomRightShadow.addRRect(RRect.fromLTRBR(
102 | 0.0 + roundedRectangleBottomRightShadowShift + _increment(),
103 | 0.0 + roundedRectangleBottomRightShadowShift,
104 | thumbSize + roundedRectangleBottomRightShadowShift + _increment(),
105 | thumbSize + roundedRectangleBottomRightShadowShift,
106 | Radius.circular(roundedThumbRadius)));
107 | if (bottomRightShadow == true)
108 | canvas.drawPath(roundedRectangleBottomRightShadow,
109 | roundedRectangleBottomRightShadowPaint);
110 |
111 | /// Rounded Rectangle Thumb Paint
112 |
113 | Path roundedRectangle = Path();
114 | Paint roundedRectanglePaint = Paint()..color = thumbColor;
115 |
116 | roundedRectangle.addRRect(RRect.fromLTRBR(
117 | -5.0 + _increment(),
118 | 0.0,
119 | thumbSize+5 + _increment(),
120 | thumbSize,
121 | Radius.circular(roundedThumbRadius)));
122 | canvas.drawPath(roundedRectangle, roundedRectanglePaint);
123 | }
124 |
125 | @override
126 | bool shouldRepaint(CustomPainter oldDelegate) {
127 | return true;
128 | }
129 | }
130 |
--------------------------------------------------------------------------------
/lib/widgets/button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class RetroButton extends StatefulWidget {
4 | final IconData icon;
5 | final Function onPress;
6 | final double width;
7 | final double height;
8 | RetroButton({this.icon, this.onPress,this.width=50,this.height=30});
9 |
10 | @override
11 | _RetroButtonState createState() => _RetroButtonState();
12 | }
13 |
14 | class _RetroButtonState extends State {
15 | @override
16 | Widget build(BuildContext context) {
17 | return GestureDetector(
18 | onTap: widget.onPress,
19 | child: Container(
20 | width: widget.width,
21 | height: widget.height,
22 | decoration: BoxDecoration(
23 | color: Color(0xFFBDCED6),
24 | border: Border(
25 | top: BorderSide(width: 1, color: Color(0xFFFFFFFF)),
26 | left: BorderSide(width: 1, color: Color(0xFFFFFFFF)),
27 | right: BorderSide(width: 2, color: Color(0xFF000000)),
28 | bottom: BorderSide(width: 2, color: Color(0xFF000000)),
29 | )),
30 | child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
31 | Icon(
32 | widget.icon,
33 | size: 24,
34 | color: Color(0xff687582),
35 | ),
36 | ]),
37 | ),
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/widgets/controlLabel.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ControlLabel extends StatelessWidget {
4 | final String text;
5 | final bool enabled;
6 | final Function onPress;
7 |
8 | ControlLabel({this.text, this.enabled, this.onPress});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return GestureDetector(
13 | onTap: onPress,
14 | child: Text(
15 | text,
16 | style: TextStyle(
17 | fontFamily: 'Pixer',
18 | fontSize: 18,
19 | color: enabled ? Color(0XFF04E406) : Colors.white),
20 | ),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/widgets/desktop/desktopUI.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:winamp/helpers/audio.dart';
5 | import 'package:winamp/widgets/awesome_slider/awesome_slider_main.dart';
6 | import 'package:winamp/widgets/button.dart';
7 | import 'package:winamp/widgets/textControlButton.dart';
8 |
9 | import '../controlLabel.dart';
10 | import '../mainInfo.dart';
11 | import '../miniControls.dart';
12 | import '../miniEQButton.dart';
13 | import '../trackNameBar.dart';
14 | import 'navbar.dart';
15 |
16 | bool mono = false;
17 | double seekTime = 0;
18 | String currentTrack = "No Track Selected";
19 | String trackMin = "00";
20 | String trackSec = "00";
21 |
22 | int trackMinint = 0;
23 | int trackSecint = 0;
24 |
25 | class DesktopUI extends StatefulWidget {
26 | @override
27 | _DesktopUIState createState() => _DesktopUIState();
28 | }
29 |
30 | class _DesktopUIState extends State {
31 | @override
32 | Widget build(BuildContext context) {
33 | return Scaffold(
34 | backgroundColor: Color(0xff020088),
35 | body: Container(
36 | width: MediaQuery.of(context).size.width,
37 | height: MediaQuery.of(context).size.height,
38 | decoration: BoxDecoration(
39 | image: DecorationImage(
40 | image: AssetImage('assets/xp.jpg'), fit: BoxFit.cover)),
41 | child: Center(
42 | child: Container(
43 | width: 780,
44 | height: 350,
45 | decoration: BoxDecoration(color: Colors.black, boxShadow: [
46 | BoxShadow(blurRadius: 5, color: Colors.black, spreadRadius: 1)
47 | ]),
48 | child: Column(
49 | children: [DesktopNavbar(), DesktopMain()],
50 | ),
51 | ),
52 | ),
53 | ),
54 | );
55 | }
56 | }
57 |
58 | class DesktopMain extends StatefulWidget {
59 | @override
60 | _DesktopMainState createState() => _DesktopMainState();
61 | }
62 |
63 | class _DesktopMainState extends State {
64 | bool paused = true;
65 | bool initial = true;
66 |
67 | @override
68 | void initState() {
69 | initAudio(
70 | 'https://ia601406.us.archive.org/13/items/sound_20200629/sound.mp3');
71 |
72 | setState(() {
73 | mono = false;
74 | seekTime = 0;
75 | currentTrack = "No Track Selected";
76 | trackMin = "00";
77 | trackSec = "00";
78 | trackMinint = 0;
79 | trackSecint = 0;
80 | });
81 | super.initState();
82 | }
83 |
84 | @override
85 | Widget build(BuildContext context) {
86 | void stopMusic() {
87 | setState(() {
88 | paused = true;
89 | currentTrack = "No Track Selected";
90 | });
91 | stopAudio();
92 | }
93 |
94 | void trackTime() {
95 | setState(() {
96 | // ignore: division_optimization
97 | trackMinint = (seekTime / 60).toInt();
98 | trackSecint = (seekTime - (trackMinint * 60)).toInt();
99 | });
100 |
101 | if (trackSecint < 10) {
102 | setState(() {
103 | trackSec = "0" + trackSecint.toString();
104 | });
105 | } else {
106 | setState(() {
107 | trackSec = trackSecint.toString();
108 | });
109 | }
110 |
111 | setState(() {
112 | trackMin = "0" + trackMinint.toString();
113 | });
114 |
115 | if (trackMin == "03" && trackSec == "04") {
116 | setState(() {
117 | seekTime = 0;
118 | trackMinint = 0;
119 | trackSecint = 0;
120 | trackMin = "00";
121 | trackSec = "00";
122 | });
123 | stopMusic();
124 | seekAudio(0);
125 | }
126 | }
127 |
128 | void seeker() async {
129 | Timer.periodic(Duration(milliseconds: 1000), (timer) {
130 | if (!paused) {
131 | setState(() {
132 | seekTime += 1;
133 | });
134 | trackTime();
135 | } else {
136 | // dispose();
137 | }
138 | });
139 | }
140 |
141 | void playMusic() async {
142 | if (paused) {
143 | playAudio();
144 |
145 | // playAudio('assets/music.mp3');
146 | setState(() {
147 | paused = false;
148 | // initial=false;
149 | currentTrack = "Rough - Jordyn Edmonds";
150 | });
151 | if (initial) {
152 | setState(() {
153 | initial = false;
154 | seekTime = 0;
155 | });
156 | seeker();
157 | }
158 | }
159 | }
160 |
161 | void seekMusic(double position) {
162 | int time = position.toInt();
163 | seekAudio(time);
164 |
165 | setState(() {
166 | trackSecint = time;
167 | seekTime = position;
168 | });
169 | trackTime();
170 | }
171 |
172 | void pauseMusic() {
173 | pauseAudio();
174 |
175 | setState(() {
176 | paused = true;
177 | currentTrack = "PAUSED - Rough - Jordyn Edmonds";
178 | });
179 | }
180 |
181 | return Container(
182 | width: 770,
183 | height: 300,
184 | decoration: BoxDecoration(
185 | border: Border.all(color: Color(0xFF555569), width: 2.0),
186 | gradient: LinearGradient(
187 | begin: Alignment.centerLeft,
188 | end: Alignment(0.8, 0.0),
189 | colors: [
190 | Color(0xFF212132),
191 | Color(0XFF353454),
192 | Color(0xFF474766),
193 | ],
194 | tileMode: TileMode.repeated,
195 | ),
196 | ),
197 | child: Padding(
198 | padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
199 | child: Column(
200 | crossAxisAlignment: CrossAxisAlignment.start,
201 | children: [
202 | /* TOP CONTROLS */
203 | Row(
204 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
205 | crossAxisAlignment: CrossAxisAlignment.center,
206 | children: [
207 | Transform.scale(
208 | scale: 1,
209 | child: MainInfoWidget(
210 | minutes: trackMin,
211 | seconds: trackSec,
212 | playing: !paused)),
213 | Column(
214 | crossAxisAlignment: CrossAxisAlignment.start,
215 | mainAxisAlignment: MainAxisAlignment.center,
216 | children: [
217 | TrackNameBar(currentTrack),
218 | SizedBox(height: 15),
219 | Row(
220 | crossAxisAlignment: CrossAxisAlignment.center,
221 | children: [
222 | MiniControls(
223 | units: "kbps",
224 | initialValue: 160,
225 | min: 98,
226 | max: 320),
227 | MiniControls(
228 | units: "dB",
229 | initialValue: 50,
230 | min: 0,
231 | max: 100,
232 | control: (double level) {
233 | setAudioVolume(level);
234 | },
235 | ),
236 | MiniControls(
237 | units: "kHz", initialValue: 44, min: 32, max: 98),
238 | Row(
239 | children: [
240 | Column(
241 | children: [
242 | ControlLabel(
243 | text: "mono",
244 | enabled: mono,
245 | onPress: () {
246 | setState(() {
247 | mono = true;
248 | });
249 | }),
250 | SizedBox(height: 15),
251 | MiniButton(light: Colors.yellow, text: "EQ"),
252 | ],
253 | ),
254 | SizedBox(width: 10),
255 | Column(
256 | children: [
257 | ControlLabel(
258 | text: "stereo",
259 | enabled: !mono,
260 | onPress: () => setState(() {
261 | mono = false;
262 | })),
263 | SizedBox(height: 15),
264 | MiniButton(light: Colors.red, text: "PL"),
265 | ],
266 | )
267 | ],
268 | )
269 | ],
270 | ),
271 | ],
272 | )
273 | ],
274 | ),
275 | SizedBox(height: 15),
276 | SeekBar(
277 | min: 0,
278 | max: 185, // Time in seconds,
279 | value: seekTime,
280 | seek: (val) {
281 | print("SEEKED" + val.toString());
282 | seekMusic(val);
283 | },
284 | ),
285 | SizedBox(height: 20),
286 | Row(
287 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
288 | children: [
289 | Row(
290 | children: [
291 | RetroButton(
292 | onPress: () {
293 | seekMusic(0);
294 | },
295 | icon: Icons.fast_rewind),
296 | SizedBox(width: 5),
297 | RetroButton(
298 | onPress: () => playMusic(), icon: Icons.play_arrow),
299 | SizedBox(width: 5),
300 | RetroButton(onPress: () => pauseMusic(), icon: Icons.pause),
301 | SizedBox(width: 5),
302 | RetroButton(
303 | onPress: () {
304 | stopMusic();
305 | this.initState();
306 | },
307 | icon: Icons.stop),
308 | SizedBox(width: 5),
309 | RetroButton(onPress: () {}, icon: Icons.fast_forward),
310 | SizedBox(width: 10),
311 | RetroButton(onPress: () {}, icon: Icons.eject),
312 | ],
313 | ),
314 | Row(
315 | children: [
316 | TextControlButton(text: "Shuffle", light: Colors.red),
317 | SizedBox(width: 10),
318 | TextControlButton(
319 | icon: true,
320 | ico: Icons.repeat,
321 | light: Colors.yellow,
322 | width: 40)
323 | ],
324 | )
325 | ],
326 | )
327 | ],
328 | ),
329 | ),
330 | );
331 | }
332 | }
333 |
334 | class SeekBar extends StatelessWidget {
335 | final Function seek;
336 | final double min;
337 | final double max;
338 | final double value;
339 | SeekBar({this.seek, this.min, this.max, this.value});
340 |
341 | @override
342 | Widget build(BuildContext context) {
343 | return Row(
344 | mainAxisAlignment: MainAxisAlignment.center,
345 | mainAxisSize: MainAxisSize.max,
346 | children: [
347 | Container(
348 | // decoration: BoxDecoration(color: Color(0xff1B1932)),
349 | child: CustomSlider(
350 | value: value,
351 | min: min,
352 | max: max,
353 | thumbSize: 34.0,
354 | sliderWidth: 720.0,
355 | thumbColor: Colors.yellow,
356 | roundedRectangleThumbRadius: 0.0,
357 | topLeftShadow: false,
358 | bottomRightShadow: true,
359 | bottomRightShadowBlur: MaskFilter.blur(BlurStyle.outer, 3),
360 | bottomRightShadowColor: Colors.black,
361 | activeLineStroke: 2.0,
362 | activeLineColor: Color(0xff1B1932),
363 | inactiveLineColor: Color(0xff1B1932),
364 | child: Padding(
365 | padding: EdgeInsets.all(2.0),
366 | child: Center(
367 | child: Text(
368 | '──',
369 | style: TextStyle(
370 | color: Colors.black,
371 | fontSize: 18.0,
372 | fontFamily: 'Pixer',
373 | fontWeight: FontWeight.bold,
374 | ),
375 | )),
376 | ),
377 | onChanged: (double val) {
378 | seek(val);
379 | },
380 | ),
381 | ),
382 | ],
383 | );
384 | }
385 | }
386 |
387 | // class SeekBar extends StatefulWidget {
388 | // final Function seek;
389 | // final double min;
390 | // final double max;
391 | // final double value;
392 | // SeekBar({this.seek, this.min, this.max, this.value});
393 |
394 | // @override
395 | // _SeekBarState createState() => _SeekBarState();
396 | // }
397 |
398 | // class _SeekBarState extends State {
399 | // double _value;
400 |
401 | // @override
402 | // void initState() {
403 | // super.initState();
404 | // _value = widget.value;
405 | // }
406 |
407 | // @override
408 | // Widget build(BuildContext context) {
409 | // return Row(
410 | // mainAxisAlignment: MainAxisAlignment.center,
411 | // mainAxisSize: MainAxisSize.max,
412 | // children: [
413 | // Container(
414 | // // decoration: BoxDecoration(color: Color(0xff1B1932)),
415 | // child: CustomSlider(
416 | // value: widget.value,
417 | // min: widget.min,
418 | // max: widget.max,
419 | // thumbSize: 34.0,
420 | // sliderWidth: 720.0,
421 | // thumbColor: Colors.yellow,
422 | // roundedRectangleThumbRadius: 0.0,
423 | // topLeftShadow: false,
424 | // bottomRightShadow: true,
425 | // bottomRightShadowBlur: MaskFilter.blur(BlurStyle.outer, 3),
426 | // bottomRightShadowColor: Colors.black,
427 | // activeLineStroke: 2.0,
428 | // activeLineColor: Color(0xff1B1932),
429 | // inactiveLineColor: Color(0xff1B1932),
430 | // child: Padding(
431 | // padding: EdgeInsets.all(2.0),
432 | // child: Center(
433 | // child: Text(
434 | // '──',
435 | // style: TextStyle(
436 | // color: Colors.black,
437 | // fontSize: 18.0,
438 | // fontFamily: 'Pixer',
439 | // fontWeight: FontWeight.bold,
440 | // ),
441 | // )),
442 | // ),
443 | // onChanged: (double val) {
444 | // // widget.seek(val);
445 | // setState(() {
446 | // _value = val;
447 | // });
448 | // },
449 | // ),
450 | // ),
451 | // ],
452 | // );
453 | // }
454 | // }
455 |
--------------------------------------------------------------------------------
/lib/widgets/desktop/navLine.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class NavLine extends StatelessWidget {
4 | const NavLine({
5 | Key key,
6 | }) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | width: 285,
12 | color: Colors.yellow,
13 | height: 5,
14 | );
15 | }
16 | }
--------------------------------------------------------------------------------
/lib/widgets/desktop/navLogo.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class WinLogo extends StatelessWidget {
4 | @override
5 | Widget build(BuildContext context) {
6 | return Container(
7 | width: 36,
8 | height: 36,
9 | decoration: BoxDecoration(
10 | // color: Colors.white,
11 | image: DecorationImage(
12 | image: AssetImage(
13 | 'assets/logo.png',
14 | ),
15 | fit: BoxFit.cover,
16 | )),
17 | );
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/lib/widgets/desktop/navbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'navLine.dart';
4 | import 'navLogo.dart';
5 |
6 | class DesktopNavbar extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return Padding(
10 | padding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
11 | child: Row(
12 | children: [
13 | WinLogo(),
14 | SizedBox(width: 10),
15 | Row(
16 | children: [
17 | NavLine(),
18 | SizedBox(width: 10),
19 | Text(
20 | "WINAMP",
21 | style: TextStyle(
22 | color: Colors.white,
23 | fontFamily: 'Pixer',
24 | fontSize: 18,
25 | ),
26 | ),
27 | SizedBox(width: 10),
28 | NavLine(),
29 | SizedBox(width: 10),
30 | Padding(
31 | padding: const EdgeInsets.all(0.0),
32 | child: Container(
33 | width: 18,
34 | height: 18,
35 | decoration: BoxDecoration(
36 | image: DecorationImage(
37 | image: AssetImage(
38 | 'assets/btn1.png',
39 | ),
40 | fit: BoxFit.cover,
41 | )),
42 | ),
43 | ),
44 | Padding(
45 | padding: const EdgeInsets.all(0.0),
46 | child: Container(
47 | width: 18,
48 | height: 18,
49 | decoration: BoxDecoration(
50 | // color: Colors.white,
51 | image: DecorationImage(
52 | image: AssetImage(
53 | 'assets/btn1.png',
54 | ),
55 | fit: BoxFit.cover,
56 | )),
57 | ),
58 | )
59 | ],
60 | )
61 | ],
62 | ),
63 | );
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/lib/widgets/mainInfo.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:winamp/widgets/sidebarText.dart';
3 |
4 | class MainInfoWidget extends StatelessWidget {
5 | final String minutes;
6 | final String seconds;
7 | final bool playing;
8 |
9 | MainInfoWidget({this.minutes, this.seconds, this.playing});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | width: 250,
15 | height: 150,
16 | decoration: BoxDecoration(
17 | color: Color(0xFF040405),
18 | border: Border(
19 | right: BorderSide(width: 2, color: Color(0xFF555569)),
20 | bottom: BorderSide(width: 2, color: Color(0xFF555569)),
21 | ),
22 | image: DecorationImage(
23 | image: AssetImage('assets/gridtexture.png'),
24 | fit: BoxFit.fill,
25 | repeat: ImageRepeat.repeat),
26 | ),
27 | child: Padding(
28 | padding: const EdgeInsets.all(8.0),
29 | child: Row(
30 | crossAxisAlignment: CrossAxisAlignment.center,
31 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
32 | children: [
33 | SidebarText(),
34 | Column(
35 | children: [
36 | MusicTimer(minutes: this.minutes, seconds: this.seconds),
37 | Container(
38 | width: 190,
39 | height: 50,
40 | decoration: BoxDecoration(
41 | image: DecorationImage(
42 | image: playing
43 | ?AssetImage("assets/music_bars.gif")
44 | : AssetImage('assets/musicbars.png'),
45 | ),
46 | ),
47 | )
48 | ],
49 | ),
50 | ],
51 | ),
52 | ),
53 | );
54 | }
55 | }
56 |
57 | class MusicTimer extends StatelessWidget {
58 | final String minutes;
59 | final String seconds;
60 |
61 | MusicTimer({this.minutes, this.seconds});
62 |
63 | @override
64 | Widget build(BuildContext context) {
65 | return Row(
66 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
67 | crossAxisAlignment: CrossAxisAlignment.center,
68 | children: [
69 | Text(
70 | "▶- ",
71 | style: TextStyle(
72 | fontFamily: 'Pixer', fontSize: 36, color: Color(0XFF04E406)),
73 | ),
74 | Text(
75 | "${this.minutes}:${this.seconds}",
76 | style: TextStyle(
77 | fontFamily: 'Pixer', fontSize: 64, color: Color(0XFF04E406)),
78 | ),
79 | ],
80 | );
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/lib/widgets/miniControls.dart:
--------------------------------------------------------------------------------
1 | import 'package:awesome_slider/awesome_slider.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class MiniControls extends StatefulWidget {
5 | final String units;
6 | final double initialValue;
7 | final double min;
8 | final double max;
9 | final Function control;
10 |
11 | MiniControls(
12 | {this.units, this.initialValue, this.min, this.max, this.control});
13 |
14 | @override
15 | _MiniControlsState createState() => _MiniControlsState();
16 | }
17 |
18 | class _MiniControlsState extends State {
19 | double _value = 0;
20 |
21 | @override
22 | void initState() {
23 | _value = widget.initialValue;
24 | super.initState();
25 | }
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return Column(
30 | crossAxisAlignment: CrossAxisAlignment.start,
31 | mainAxisAlignment: MainAxisAlignment.start,
32 | children: [
33 | Row(
34 | mainAxisAlignment: MainAxisAlignment.start,
35 | children: [
36 | Container(
37 | width: 45,
38 | height: 32,
39 | padding: EdgeInsets.symmetric(horizontal: 3, vertical: 2),
40 | decoration: BoxDecoration(
41 | color: Color(0xFF040405),
42 | border: Border(
43 | right: BorderSide(width: 2, color: Color(0xFF555569)),
44 | bottom: BorderSide(width: 2, color: Color(0xFF555569)),
45 | ),
46 | image: DecorationImage(
47 | image: AssetImage('assets/gridtexture.png'),
48 | fit: BoxFit.fill,
49 | repeat: ImageRepeat.repeat),
50 | ),
51 | child: Text(
52 | _value.toString(),
53 | textAlign: TextAlign.center,
54 | style: TextStyle(
55 | fontFamily: 'Pixer',
56 | fontSize: 19,
57 | color: Color(0XFF04E406)),
58 | ),
59 | ),
60 | SizedBox(
61 | width: 5,
62 | ),
63 | Text(
64 | widget.units,
65 | style: TextStyle(
66 | fontFamily: 'Pixer', fontSize: 18, color: Colors.white),
67 | ),
68 | ],
69 | ),
70 | SizedBox(height: 10),
71 | Container(
72 | padding: EdgeInsets.all(0),
73 | width: 110,
74 | child: AwesomeSlider(
75 | value: _value,
76 | min: widget.min,
77 | max: widget.max,
78 | thumbSize: 22.0,
79 | sliderWidth: 80.0,
80 | thumbColor: Colors.grey[500],
81 | roundedRectangleThumbRadius: 0.0,
82 | topLeftShadow: false,
83 | bottomRightShadow: true,
84 | bottomRightShadowBlur: MaskFilter.blur(BlurStyle.outer, 3),
85 | bottomRightShadowColor: Colors.black,
86 | activeLineStroke: 2.0,
87 | activeLineColor: Color(0xFF248A19),
88 | inactiveLineColor: Color(0xFF248A19),
89 | child: Padding(
90 | padding: EdgeInsets.all(2.0),
91 | child: Center(
92 | child: Text(
93 | '〣 ',
94 | style: TextStyle(
95 | color: Colors.black,
96 | fontSize: 18.0,
97 | fontFamily: 'Pixer',
98 | fontWeight: FontWeight.bold,
99 | ),
100 | )),
101 | ),
102 | onChanged: (double value) {
103 | widget.control(value);
104 | setState(() {
105 | _value = value;
106 | });
107 | },
108 | ),
109 | ),
110 | ],
111 | );
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/lib/widgets/miniEQButton.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | class MiniButton extends StatefulWidget {
3 | final Color light;
4 | final String text;
5 | final bool selected;
6 |
7 | MiniButton({this.light, this.text, this.selected = false});
8 |
9 | @override
10 | _MiniButtonState createState() => _MiniButtonState();
11 | }
12 |
13 | class _MiniButtonState extends State {
14 | bool enabled;
15 | @override
16 | void initState() {
17 | enabled = widget.selected;
18 | super.initState();
19 | }
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return GestureDetector(
24 | onTap: () {
25 | setState(() {
26 | enabled = !enabled;
27 | });
28 | },
29 | child: Container(
30 | width: 40,
31 | height: 25,
32 | decoration: BoxDecoration(
33 | color: enabled ? Color(0xFFBDCED6) : Colors.grey[500],
34 | border: Border(
35 | top: BorderSide(
36 | width: 1,
37 | color: enabled ? Color(0xFF000000) : Color(0xFFFFFFFF)),
38 | left: BorderSide(
39 | width: 1,
40 | color: enabled ? Color(0xFF000000) : Color(0xFFFFFFFF)),
41 | right: BorderSide(
42 | width: 2,
43 | color: enabled ? Color(0xFFFFFFFF) : Color(0xFF000000)),
44 | bottom: BorderSide(
45 | width: 2,
46 | color: enabled ? Color(0xFFFFFFFF) : Color(0xFF000000)),
47 | )),
48 | child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
49 | Container(
50 | height: 10,
51 | width: 10,
52 | decoration: BoxDecoration(
53 | color: widget.light,
54 | border: Border.all(color: Color(0xFF000000), width: 1)),
55 | ),
56 | Text(
57 | widget.text,
58 | style: TextStyle(
59 | fontFamily: 'Pixer', color: Colors.black, fontSize: 16),
60 | ),
61 | ]),
62 | ),
63 | );
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/lib/widgets/mobile/MobileTrackBar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class MobileTrackBar extends StatelessWidget {
4 |
5 | final String trackName;
6 |
7 | MobileTrackBar(this.trackName);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | width: MediaQuery.of(context).size.width*0.98,
13 | height: 32,
14 | padding: EdgeInsets.symmetric(horizontal: 6, vertical: 2),
15 | decoration: BoxDecoration(
16 | color: Color(0xFF040405),
17 | border: Border(
18 | right: BorderSide(width: 2, color: Color(0xFF555569)),
19 | bottom: BorderSide(width: 2, color: Color(0xFF555569)),
20 | ),
21 | image: DecorationImage(
22 | image: AssetImage('assets/gridtexture.png'),
23 | fit: BoxFit.fill,
24 | repeat: ImageRepeat.repeat),
25 | ),
26 | child: Text(
27 | this.trackName,
28 | textAlign: TextAlign.right,
29 | style: TextStyle(
30 | fontFamily: 'Pixer', fontSize: 18, color: Color(0XFF04E406)),
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/widgets/mobile/mobileInfo.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:winamp/widgets/sidebarText.dart';
3 |
4 | class MobileInfoWidget extends StatelessWidget {
5 | final String minutes;
6 | final String seconds;
7 | final bool playing;
8 |
9 | MobileInfoWidget({this.minutes, this.seconds, this.playing});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | width: MediaQuery.of(context).size.width * 0.98,
15 | height: 250,
16 | decoration: BoxDecoration(
17 | color: Color(0xFF040405),
18 | border: Border(
19 | right: BorderSide(width: 2, color: Color(0xFF555569)),
20 | bottom: BorderSide(width: 2, color: Color(0xFF555569)),
21 | ),
22 | image: DecorationImage(
23 | image: AssetImage('assets/gridtexture.png'),
24 | fit: BoxFit.fill,
25 | repeat: ImageRepeat.repeat),
26 | ),
27 | child: Padding(
28 | padding: const EdgeInsets.all(8.0),
29 | child: Row(
30 | crossAxisAlignment: CrossAxisAlignment.center,
31 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
32 | children: [
33 | Column(
34 | crossAxisAlignment: CrossAxisAlignment.center,
35 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
36 | children: [
37 | SizedBox(
38 | width: MediaQuery.of(context).size.width * 0.9,
39 | ),
40 | MusicTimer(
41 | minutes: this.minutes,
42 | seconds: this.seconds,
43 | ),
44 | Container(
45 | width: MediaQuery.of(context).size.width * 0.90,
46 | height: 140,
47 | decoration: BoxDecoration(
48 | image: DecorationImage(
49 | image: playing
50 | ? AssetImage("assets/music_bars.gif")
51 | : AssetImage('assets/musicbars.png'),
52 | ),
53 | ),
54 | )
55 | ],
56 | ),
57 | ],
58 | ),
59 | ),
60 | );
61 | }
62 | }
63 |
64 | class MusicTimer extends StatelessWidget {
65 | final String minutes;
66 | final String seconds;
67 |
68 | MusicTimer({this.minutes, this.seconds});
69 |
70 | @override
71 | Widget build(BuildContext context) {
72 | return Center(
73 | child: Row(
74 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
75 | mainAxisSize: MainAxisSize.max,
76 | crossAxisAlignment: CrossAxisAlignment.center,
77 | children: [
78 | Text(
79 | "▶- ",
80 | style: TextStyle(
81 | fontFamily: 'Pixer', fontSize: 28, color: Color(0XFF04E406)),
82 | ),
83 | SizedBox(width: MediaQuery.of(context).size.width * 0.5),
84 | Text(
85 | "${this.minutes}:${this.seconds}",
86 | style: TextStyle(
87 | fontFamily: 'Pixer', fontSize: 48, color: Color(0XFF04E406)),
88 | ),
89 | ],
90 | ),
91 | );
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/lib/widgets/mobile/mobileSeek.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:winamp/widgets/awesome_slider/mobile_slider_main.dart';
3 |
4 | class MobileSeekBar extends StatelessWidget {
5 | final Function seek;
6 | final double min;
7 | final double max;
8 | final double value;
9 | MobileSeekBar({this.seek, this.min, this.max, this.value});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Row(
14 | mainAxisAlignment: MainAxisAlignment.center,
15 | mainAxisSize: MainAxisSize.max,
16 | children: [
17 | Container(
18 | // decoration: BoxDecoration(color: Color(0xff1B1932)),
19 | child: MobileSlider(
20 | value: value,
21 | min: min,
22 | max: max,
23 | thumbSize: 28.0,
24 | sliderWidth: MediaQuery.of(context).size.width*0.9,
25 | thumbColor: Colors.yellow,
26 | roundedRectangleThumbRadius: 0.0,
27 | topLeftShadow: false,
28 | bottomRightShadow: true,
29 | bottomRightShadowBlur: MaskFilter.blur(BlurStyle.outer, 3),
30 | bottomRightShadowColor: Colors.black,
31 | activeLineStroke: 2.0,
32 | activeLineColor: Color(0xff1B1932),
33 | inactiveLineColor: Color(0xff1B1932),
34 | child: Padding(
35 | padding: EdgeInsets.all(2.0),
36 | child: Center(
37 | child: Text(
38 | '──',
39 | style: TextStyle(
40 | color: Colors.black,
41 | fontSize: 18.0,
42 | fontFamily: 'Pixer',
43 | fontWeight: FontWeight.bold,
44 | ),
45 | )),
46 | ),
47 | onChanged: (double val) {
48 | seek(val);
49 | },
50 | ),
51 | ),
52 | ],
53 | );
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/lib/widgets/mobile/mobileUI.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:winamp/helpers/audio.dart';
5 | import 'package:winamp/widgets/desktop/desktopUI.dart';
6 | import 'package:winamp/widgets/desktop/navLogo.dart';
7 |
8 | import '../button.dart';
9 | import '../controlLabel.dart';
10 | import '../miniControls.dart';
11 | import '../miniEQButton.dart';
12 | import '../textControlButton.dart';
13 | import '../trackNameBar.dart';
14 | import 'MobileTrackBar.dart';
15 | import 'mobileInfo.dart';
16 | import 'mobileSeek.dart';
17 |
18 | bool mono = false;
19 | double seekTime = 0;
20 | String currentTrack = "No Track Selected";
21 | String trackMin = "00";
22 | String trackSec = "00";
23 |
24 | int trackMinint = 0;
25 | int trackSecint = 0;
26 |
27 | bool paused = true;
28 | bool initial = true;
29 |
30 | class MobileUI extends StatefulWidget {
31 | @override
32 | _MobileUIState createState() => _MobileUIState();
33 | }
34 |
35 | class _MobileUIState extends State {
36 | @override
37 | void initState() {
38 | initAudio(
39 | 'https://ia601406.us.archive.org/13/items/sound_20200629/sound.mp3');
40 | setState(() {
41 | mono = false;
42 | seekTime = 0;
43 | currentTrack = "No Track Selected";
44 | trackMin = "00";
45 | trackSec = "00";
46 | trackMinint = 0;
47 | trackSecint = 0;
48 | });
49 | super.initState();
50 | }
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | // ignore: unused_element
55 | void stopMusic() {
56 | setState(() {
57 | paused = true;
58 | currentTrack = "No Track Selected";
59 | });
60 | stopAudio();
61 | }
62 |
63 | void trackTime() {
64 | setState(() {
65 | // ignore: division_optimization
66 | trackMinint = (seekTime / 60).toInt();
67 | trackSecint = (seekTime - (trackMinint * 60)).toInt();
68 | });
69 |
70 | if (trackSecint < 10) {
71 | setState(() {
72 | trackSec = "0" + trackSecint.toString();
73 | });
74 | } else {
75 | setState(() {
76 | trackSec = trackSecint.toString();
77 | });
78 | }
79 |
80 | setState(() {
81 | trackMin = "0" + trackMinint.toString();
82 | });
83 |
84 | if (trackMin == "03" && trackSec == "04") {
85 | setState(() {
86 | seekTime = 0;
87 | trackMinint = 0;
88 | trackSecint = 0;
89 | trackMin = "00";
90 | trackSec = "00";
91 | });
92 | stopMusic();
93 | seekAudio(0);
94 | }
95 | }
96 |
97 | void seeker() async {
98 | Timer.periodic(Duration(milliseconds: 1000), (timer) {
99 | if (!paused) {
100 | trackTime();
101 |
102 | if (seekTime == 185) {
103 | stopMusic();
104 | }
105 |
106 | setState(() {
107 | seekTime += 1;
108 | });
109 | } else {
110 | // dispose();
111 | }
112 | });
113 | }
114 |
115 | // ignore: unused_element
116 | void playMusic() {
117 | if (paused) {
118 | playAudio();
119 | setState(() {
120 | paused = false;
121 | // initial=false;
122 | currentTrack = "Rough - Jordyn Edmonds";
123 | });
124 | if (initial) {
125 | setState(() {
126 | initial = false;
127 | seekTime = 0;
128 | });
129 | seeker();
130 | }
131 | }
132 | }
133 |
134 | // ignore: unused_element
135 | void seekMusic(double position) {
136 | int time = position.toInt();
137 | seekAudio(time);
138 |
139 | setState(() {
140 | trackSecint = time;
141 | seekTime = position;
142 | });
143 | trackTime();
144 | }
145 |
146 | // ignore: unused_element
147 | void pauseMusic() {
148 | pauseAudio();
149 |
150 | setState(() {
151 | paused = true;
152 | currentTrack = "PAUSED - Rough - Jordyn Edmonds";
153 | });
154 | }
155 |
156 | return Scaffold(
157 | body: Column(
158 | crossAxisAlignment: CrossAxisAlignment.center,
159 | children: [
160 | MobileNav(),
161 | Container(
162 | width: MediaQuery.of(context).size.width * 0.97,
163 | height: MediaQuery.of(context).size.height - 40,
164 | decoration: BoxDecoration(
165 | border: Border.all(color: Color(0xFF555569), width: 2.0),
166 | gradient: LinearGradient(
167 | begin: Alignment.centerLeft,
168 | end: Alignment(0.8, 0.0),
169 | colors: [
170 | Color(0xFF212132),
171 | Color(0XFF353454),
172 | Color(0xFF474766),
173 | ],
174 | tileMode: TileMode.repeated,
175 | ),
176 | ),
177 | child: Padding(
178 | padding: const EdgeInsets.only(left: 4.0),
179 | child: Column(
180 | crossAxisAlignment: CrossAxisAlignment.center,
181 | children: [
182 | SizedBox(width: MediaQuery.of(context).size.width * 0.98),
183 | SizedBox(height: 5),
184 | MobileTrackBar(currentTrack),
185 | SizedBox(height: 10),
186 | MobileInfoWidget(
187 | minutes: trackMin,
188 | seconds: trackSec,
189 | playing: !paused,
190 | ),
191 | SizedBox(height: 15),
192 | Row(
193 | mainAxisSize: MainAxisSize.max,
194 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
195 | crossAxisAlignment: CrossAxisAlignment.start,
196 | children: [
197 | MiniControls(
198 | units: "kbps", initialValue: 160, min: 98, max: 320),
199 | MiniControls(
200 | units: "dB",
201 | initialValue: 50,
202 | min: 0,
203 | max: 100,
204 | control: (double level) {
205 | setAudioVolume(level);
206 | },
207 | ),
208 | MiniControls(
209 | units: "kHz", initialValue: 44, min: 32, max: 98),
210 | SizedBox(width: 10),
211 | Column(
212 | mainAxisAlignment: MainAxisAlignment.center,
213 | children: [
214 | ControlLabel(
215 | text: "mono",
216 | enabled: mono,
217 | onPress: () {
218 | setState(() {
219 | mono = true;
220 | });
221 | }),
222 | SizedBox(height: 15),
223 | MiniButton(light: Colors.yellow, text: "EQ"),
224 | ],
225 | ),
226 | Column(
227 | mainAxisAlignment: MainAxisAlignment.center,
228 | children: [
229 | ControlLabel(
230 | text: "stereo",
231 | enabled: !mono,
232 | onPress: () => setState(() {
233 | mono = false;
234 | })),
235 | SizedBox(height: 15),
236 | MiniButton(light: Colors.red, text: "PL"),
237 | ],
238 | )
239 | ],
240 | ),
241 | SizedBox(height: 40),
242 | MobileSeekBar(
243 | min: 0,
244 | max: 185, // Time in seconds,
245 | value: seekTime,
246 | seek: (val) {
247 | print("SEEKED" + val.toString());
248 | seekMusic(val);
249 | },
250 | ),
251 | SizedBox(height: 40),
252 | Row(
253 | mainAxisSize: MainAxisSize.max,
254 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
255 | children: [
256 | RetroButton(
257 | width: 60,
258 | height: 40,
259 | onPress: () {
260 | seekMusic(0);
261 | },
262 | icon: Icons.fast_rewind),
263 | // SizedBox(width: 10),
264 | RetroButton(
265 | onPress: () => playMusic(),
266 | icon: Icons.play_arrow,
267 | width: 60,
268 | height: 40,
269 | ),
270 | // SizedBox(width: 10),
271 | RetroButton(
272 | width: 60,
273 | height: 40,
274 | onPress: () => pauseMusic(),
275 | icon: Icons.pause),
276 | // SizedBox(width: 10),
277 | RetroButton(
278 | width: 60,
279 | height: 40,
280 | onPress: () {
281 | stopMusic();
282 | this.initState();
283 | },
284 | icon: Icons.stop),
285 | // SizedBox(width: 10),
286 | RetroButton(
287 | width: 60,
288 | height: 40,
289 | icon: Icons.fast_forward,
290 | onPress: () {},
291 | ),
292 | ],
293 | ),
294 | SizedBox(height: 25),
295 | Row(
296 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
297 | mainAxisSize: MainAxisSize.max,
298 | children: [
299 | Transform.scale(
300 | scale: 1.25,
301 | child: TextControlButton(
302 | text: "Shuffle", light: Colors.red, width: 65),
303 | ),
304 | Transform.scale(
305 | scale: 1.25,
306 | child: TextControlButton(
307 | icon: true,
308 | ico: Icons.repeat,
309 | light: Colors.yellow,
310 | width: 65),
311 | )
312 | ],
313 | ),
314 | SizedBox(
315 | height: 20,
316 | ),
317 | Container(
318 | width: 54,
319 | height: 54,
320 | decoration: BoxDecoration(
321 | // color: Colors.white,
322 | image: DecorationImage(
323 | image: AssetImage(
324 | 'assets/logo2.png',
325 | ),
326 | fit: BoxFit.cover,
327 | )),
328 | )
329 | ],
330 | ),
331 | ),
332 | ),
333 | ],
334 | ),
335 | );
336 | }
337 | }
338 |
339 | class MobileNav extends StatelessWidget {
340 | const MobileNav({
341 | Key key,
342 | }) : super(key: key);
343 |
344 | @override
345 | Widget build(BuildContext context) {
346 | return Padding(
347 | padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 8),
348 | child: Row(
349 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
350 | children: [
351 | Container(
352 | width: MediaQuery.of(context).size.width * 0.33,
353 | color: Colors.yellow,
354 | height: 5,
355 | ),
356 | SizedBox(width: 10),
357 | Text(
358 | "WINAMP",
359 | style: TextStyle(
360 | color: Colors.white,
361 | fontFamily: 'Pixer',
362 | fontSize: 18,
363 | ),
364 | ),
365 | Container(
366 | width: MediaQuery.of(context).size.width * 0.33,
367 | color: Colors.yellow,
368 | height: 5,
369 | ),
370 | ],
371 | ),
372 | );
373 | }
374 | }
375 |
--------------------------------------------------------------------------------
/lib/widgets/sidebarText.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SidebarText extends StatelessWidget {
4 | const SidebarText({
5 | Key key,
6 | }) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Column(
11 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
12 | children: [
13 | Text(
14 | "O",
15 | style: TextStyle(
16 | fontFamily: 'Pixer',
17 | color: Color(0xFF404C61),
18 | fontSize: 20,
19 | ),
20 | ),
21 | Text(
22 | "A",
23 | style: TextStyle(
24 | fontFamily: 'Pixer',
25 | color: Color(0xFF404C61),
26 | fontSize: 20,
27 | ),
28 | ),
29 | Text(
30 | "I",
31 | style: TextStyle(
32 | fontFamily: 'Pixer',
33 | color: Color(0xFF404C61),
34 | fontSize: 20,
35 | ),
36 | ),
37 | Text(
38 | "D",
39 | style: TextStyle(
40 | fontFamily: 'Pixer',
41 | color: Color(0xFF404C61),
42 | fontSize: 20,
43 | ),
44 | ),
45 | Text(
46 | "V",
47 | style: TextStyle(
48 | fontFamily: 'Pixer',
49 | color: Color(0xFF404C61),
50 | fontSize: 20,
51 | ),
52 | ),
53 | ],
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/widgets/textControlButton.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class TextControlButton extends StatefulWidget {
4 | final Color light;
5 | final String text;
6 | final bool selected;
7 | final bool icon;
8 | final double width;
9 | final IconData ico;
10 |
11 | TextControlButton(
12 | {this.light,
13 | this.text,
14 | this.selected = false,
15 | this.icon = false,
16 | this.width=60,
17 | this.ico});
18 |
19 | @override
20 | _TextControlButtonState createState() => _TextControlButtonState();
21 | }
22 |
23 | class _TextControlButtonState extends State {
24 | bool enabled;
25 | @override
26 | void initState() {
27 | enabled = widget.selected;
28 | super.initState();
29 | }
30 |
31 | @override
32 | Widget build(BuildContext context) {
33 | return GestureDetector(
34 | onTap: () {
35 | setState(() {
36 | enabled = !enabled;
37 | });
38 | },
39 | child: Container(
40 | width: widget.width,
41 | height: 30,
42 | decoration: BoxDecoration(
43 | color: enabled ? Color(0xFFBDCED6) : Color(0xFFBDCED6),
44 | border: Border(
45 | top: BorderSide(
46 | width: 1,
47 | color: enabled ? Color(0xFF000000) : Color(0xFFFFFFFF)),
48 | left: BorderSide(
49 | width: 1,
50 | color: enabled ? Color(0xFF000000) : Color(0xFFFFFFFF)),
51 | right: BorderSide(
52 | width: 2,
53 | color: enabled ? Color(0xFFFFFFFF) : Color(0xFF000000)),
54 | bottom: BorderSide(
55 | width: 2,
56 | color: enabled ? Color(0xFFFFFFFF) : Color(0xFF000000)),
57 | )),
58 | child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
59 | Container(
60 | height: 10,
61 | width: 10,
62 | decoration: BoxDecoration(
63 | color: widget.light,
64 | border: Border.all(color: Color(0xFF000000), width: 1)),
65 | ),
66 | widget.icon
67 | ? Icon(widget.ico, size: 18,color: Colors.black,)
68 | : Text(
69 | widget.text,
70 | style: TextStyle(
71 | fontFamily: 'Pixer', color: Colors.black, fontSize: 14),
72 | ),
73 | ]),
74 | ),
75 | );
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/lib/widgets/trackNameBar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class TrackNameBar extends StatelessWidget {
4 |
5 | final String trackName;
6 |
7 | TrackNameBar(this.trackName);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | width: 460,
13 | height: 32,
14 | padding: EdgeInsets.symmetric(horizontal: 6, vertical: 2),
15 | decoration: BoxDecoration(
16 | color: Color(0xFF040405),
17 | border: Border(
18 | right: BorderSide(width: 2, color: Color(0xFF555569)),
19 | bottom: BorderSide(width: 2, color: Color(0xFF555569)),
20 | ),
21 | image: DecorationImage(
22 | image: AssetImage('assets/gridtexture.png'),
23 | fit: BoxFit.fill,
24 | repeat: ImageRepeat.repeat),
25 | ),
26 | child: Text(
27 | this.trackName,
28 | textAlign: TextAlign.right,
29 | style: TextStyle(
30 | fontFamily: 'Pixer', fontSize: 18, color: Color(0XFF04E406)),
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.4.1"
11 | awesome_slider:
12 | dependency: "direct main"
13 | description:
14 | name: awesome_slider
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.1.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.0.0"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.3"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.0.1"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.14.12"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.1.3"
53 | fake_async:
54 | dependency: transitive
55 | description:
56 | name: fake_async
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.1.0"
60 | flutter:
61 | dependency: "direct main"
62 | description: flutter
63 | source: sdk
64 | version: "0.0.0"
65 | flutter_test:
66 | dependency: "direct dev"
67 | description: flutter
68 | source: sdk
69 | version: "0.0.0"
70 | matcher:
71 | dependency: transitive
72 | description:
73 | name: matcher
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "0.12.6"
77 | meta:
78 | dependency: transitive
79 | description:
80 | name: meta
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.1.8"
84 | path:
85 | dependency: transitive
86 | description:
87 | name: path
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "1.7.0"
91 | sky_engine:
92 | dependency: transitive
93 | description: flutter
94 | source: sdk
95 | version: "0.0.99"
96 | source_span:
97 | dependency: transitive
98 | description:
99 | name: source_span
100 | url: "https://pub.dartlang.org"
101 | source: hosted
102 | version: "1.7.0"
103 | stack_trace:
104 | dependency: transitive
105 | description:
106 | name: stack_trace
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "1.9.3"
110 | stream_channel:
111 | dependency: transitive
112 | description:
113 | name: stream_channel
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "2.0.0"
117 | string_scanner:
118 | dependency: transitive
119 | description:
120 | name: string_scanner
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "1.0.5"
124 | term_glyph:
125 | dependency: transitive
126 | description:
127 | name: term_glyph
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.1.0"
131 | test_api:
132 | dependency: transitive
133 | description:
134 | name: test_api
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "0.2.16"
138 | typed_data:
139 | dependency: transitive
140 | description:
141 | name: typed_data
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "1.1.6"
145 | vector_math:
146 | dependency: transitive
147 | description:
148 | name: vector_math
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "2.0.8"
152 | sdks:
153 | dart: ">=2.9.0-14.0.dev <3.0.0"
154 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: winamp
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | awesome_slider: ^0.1.0
27 |
28 |
29 | # flute_music_player:
30 |
31 |
32 | # The following adds the Cupertino Icons font to your application.
33 | # Use with the CupertinoIcons class for iOS style icons.
34 | cupertino_icons: ^0.1.3
35 |
36 | dev_dependencies:
37 | flutter_test:
38 | sdk: flutter
39 |
40 | # For information on the generic Dart part of this file, see the
41 | # following page: https://dart.dev/tools/pub/pubspec
42 |
43 | # The following section is specific to Flutter.
44 | flutter:
45 |
46 | # The following line ensures that the Material Icons font is
47 | # included with your application, so that you can use the icons in
48 | # the material Icons class.
49 | uses-material-design: true
50 |
51 | assets:
52 | - assets/logo.png
53 | - assets/logo2.png
54 | - assets/gridtexture.png
55 | - assets/btn1.png
56 | - assets/bars.png
57 | - assets/music.mp3
58 | - assets/music_bars.gif
59 | - assets/musicbars.png
60 | - assets/xp.jpg
61 | # To add assets to your application, add an assets section, like this:
62 | # assets:
63 | # - images/a_dot_burr.jpeg
64 | # - images/a_dot_ham.jpeg
65 |
66 | # An image asset can refer to one or more resolution-specific "variants", see
67 | # https://flutter.dev/assets-and-images/#resolution-aware.
68 |
69 | # For details regarding adding assets from package dependencies, see
70 | # https://flutter.dev/assets-and-images/#from-packages
71 |
72 | # To add custom fonts to your application, add a fonts section here,
73 | # in this "flutter" section. Each entry in this list should have a
74 | # "family" key with the font family name, and a "fonts" key with a
75 | # list giving the asset and other descriptors for the font. For
76 | # example:
77 | fonts:
78 | - family: Pixer
79 | fonts:
80 | - asset: assets/pixer.ttf
81 | - family: DS-DIGITAL
82 | fonts:
83 | - asset: assets/DS-DIGI.TTF
84 | - asset: assets/DS-DIGIB.TTF
85 | weight: 700
86 | - asset: assets/DS-DIGII.TTF
87 | style: italic
88 |
89 | # - asset: fonts/Schyler-Italic.ttf
90 | # style: italic
91 | # - family: Trajan Pro
92 | # fonts:
93 | # - asset: fonts/TrajanPro.ttf
94 | # - asset: fonts/TrajanPro_Bold.ttf
95 | # weight: 700
96 | #
97 | # For details regarding fonts from package dependencies,
98 | # see https://flutter.dev/custom-fonts/#from-packages
99 |
--------------------------------------------------------------------------------
/screenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/screenshots/1.png
--------------------------------------------------------------------------------
/screenshots/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/screenshots/2.png
--------------------------------------------------------------------------------
/screenshots/beautifulerrors.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/screenshots/beautifulerrors.png
--------------------------------------------------------------------------------
/screenshots/winamp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/screenshots/winamp.png
--------------------------------------------------------------------------------
/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:winamp/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 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ishandeveloper/WinAMP_Flutter/15d6c6d8c0041060fcaec98644c572ace732ba45/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | winamp
18 |
19 |
20 |
21 |
56 |
57 |
58 |
62 |
71 |
72 |
73 |
76 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "winamp",
3 | "short_name": "winamp",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------