Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tried to resolve dependency issues #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"configVersion": 2,
"packages": [
{
"name": "async",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/async-2.10.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "boolean_selector",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "characters",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/characters-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "clock",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/clock-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/collection-1.17.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "fake_async",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flute_music_player",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/flute_music_player-0.0.6",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "flutter",
"rootUri": "file:///home/maurice/snap/flutter/common/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "flutter_test",
"rootUri": "file:///home/maurice/snap/flutter/common/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "js",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/js-0.6.5",
"packageUri": "lib/",
"languageVersion": "2.16"
},
{
"name": "matcher",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/matcher-0.12.13",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "material_color_utilities",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/material_color_utilities-0.2.0",
"packageUri": "lib/",
"languageVersion": "2.13"
},
{
"name": "meta",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/meta-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/path-1.8.2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "sky_engine",
"rootUri": "file:///home/maurice/snap/flutter/common/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "source_span",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/source_span-1.9.1",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "stack_trace",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/stack_trace-1.11.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "stream_channel",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/stream_channel-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "string_scanner",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "term_glyph",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/test_api-0.4.16",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "vector_math",
"rootUri": "file:///home/maurice/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "flute_example",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.19"
}
],
"generated": "2023-08-19T01:55:03.239268Z",
"generator": "pub",
"generatorVersion": "2.19.5"
}
93 changes: 93 additions & 0 deletions .dart_tool/package_config_subset
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
async
2.18
file:///home/maurice/.pub-cache/hosted/pub.dev/async-2.10.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/async-2.10.0/lib/
boolean_selector
2.17
file:///home/maurice/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
characters
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/characters-1.2.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/characters-1.2.1/lib/
clock
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/clock-1.1.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
collection
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/collection-1.17.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/collection-1.17.0/lib/
fake_async
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
flute_music_player
2.0
file:///home/maurice/.pub-cache/hosted/pub.dev/flute_music_player-0.0.6/
file:///home/maurice/.pub-cache/hosted/pub.dev/flute_music_player-0.0.6/lib/
js
2.16
file:///home/maurice/.pub-cache/hosted/pub.dev/js-0.6.5/
file:///home/maurice/.pub-cache/hosted/pub.dev/js-0.6.5/lib/
matcher
2.18
file:///home/maurice/.pub-cache/hosted/pub.dev/matcher-0.12.13/
file:///home/maurice/.pub-cache/hosted/pub.dev/matcher-0.12.13/lib/
material_color_utilities
2.13
file:///home/maurice/.pub-cache/hosted/pub.dev/material_color_utilities-0.2.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/material_color_utilities-0.2.0/lib/
meta
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/meta-1.8.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/meta-1.8.0/lib/
path
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/path-1.8.2/
file:///home/maurice/.pub-cache/hosted/pub.dev/path-1.8.2/lib/
source_span
2.14
file:///home/maurice/.pub-cache/hosted/pub.dev/source_span-1.9.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/source_span-1.9.1/lib/
stack_trace
2.18
file:///home/maurice/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/lib/
stream_channel
2.14
file:///home/maurice/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/lib/
string_scanner
2.18
file:///home/maurice/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
file:///home/maurice/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
term_glyph
2.12
file:///home/maurice/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
file:///home/maurice/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
test_api
2.18
file:///home/maurice/.pub-cache/hosted/pub.dev/test_api-0.4.16/
file:///home/maurice/.pub-cache/hosted/pub.dev/test_api-0.4.16/lib/
vector_math
2.14
file:///home/maurice/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
file:///home/maurice/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
flute_example
2.19
file:///home/maurice/DEV/FLUTTER%20PROJECTS/Flutter-Music-Player/
file:///home/maurice/DEV/FLUTTER%20PROJECTS/Flutter-Music-Player/lib/
sky_engine
2.12
file:///home/maurice/snap/flutter/common/flutter/bin/cache/pkg/sky_engine/
file:///home/maurice/snap/flutter/common/flutter/bin/cache/pkg/sky_engine/lib/
flutter
2.17
file:///home/maurice/snap/flutter/common/flutter/packages/flutter/
file:///home/maurice/snap/flutter/common/flutter/packages/flutter/lib/
flutter_test
2.17
file:///home/maurice/snap/flutter/common/flutter/packages/flutter_test/
file:///home/maurice/snap/flutter/common/flutter/packages/flutter_test/lib/
2
1 change: 1 addition & 0 deletions .dart_tool/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7.8
1 change: 1 addition & 0 deletions .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flute_music_player","path":"/home/maurice/.pub-cache/hosted/pub.dev/flute_music_player-0.0.6/","native_build":true,"dependencies":[]}],"android":[{"name":"flute_music_player","path":"/home/maurice/.pub-cache/hosted/pub.dev/flute_music_player-0.0.6/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flute_music_player","dependencies":[]}],"date_created":"2023-08-19 04:55:04.363397","version":"3.7.8"}
13 changes: 12 additions & 1 deletion android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
#Mon Mar 26 15:51:11 IST 2018
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=false
show.console.view=false
show.executions.view=false
11 changes: 11 additions & 0 deletions android/app/.project
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1692408522736</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
13 changes: 13 additions & 0 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/home/maurice/snap/flutter/common/flutter"
export "FLUTTER_APPLICATION_PATH=/home/maurice/DEV/FLUTTER PROJECTS/Flutter-Music-Player"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
12 changes: 7 additions & 5 deletions lib/data/song_data.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import 'package:flute_music_player/flute_music_player.dart';

import 'dart:math';

import 'package:flute_music_player/flute_music_player.dart';

class SongData {
List<Song> _songs;
int _currentSongIndex = -1;
MusicFinder musicFinder;
MusicFinder? musicFinder;
SongData(this._songs) {
musicFinder = new MusicFinder();
}
Expand All @@ -23,7 +25,7 @@ class SongData {
if (_currentSongIndex < length) {
_currentSongIndex++;
}
if (_currentSongIndex >= length) return null;
if (_currentSongIndex >= length) return Song.fromMap( {});
return _songs[_currentSongIndex];
}

Expand All @@ -36,9 +38,9 @@ class SongData {
if (_currentSongIndex > 0) {
_currentSongIndex--;
}
if (_currentSongIndex < 0) return null;
if (_currentSongIndex < 0) return Song.fromMap( {});
return _songs[_currentSongIndex];
}

MusicFinder get audioPlayer => musicFinder;
MusicFinder get audioPlayer => musicFinder!;
}
8 changes: 4 additions & 4 deletions lib/my_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MyApp extends StatefulWidget {
}

class _MyAppState extends State<MyApp> {
SongData songData;
SongData? songData;
bool _isLoading = true;

@override
Expand All @@ -22,7 +22,7 @@ class _MyAppState extends State<MyApp> {
@override
void dispose() {
super.dispose();
songData.audioPlayer.stop();
songData?.audioPlayer.stop();
}

// Platform messages are asynchronous, so we initialize in an async method.
Expand All @@ -33,7 +33,7 @@ class _MyAppState extends State<MyApp> {
try {
songs = await MusicFinder.allSongs();
} catch (e) {
print("Failed to get songs: '${e.message}'.");
print("Failed to get songs: $e.");
}

print(songs);
Expand All @@ -50,6 +50,6 @@ class _MyAppState extends State<MyApp> {

@override
Widget build(BuildContext context) {
return new MPInheritedWidget(songData, _isLoading, new RootPage());
return new MPInheritedWidget(songData!, _isLoading, new RootPage());
}
}
Loading