Skip to content

Commit

Permalink
README Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
moda20 committed Apr 8, 2019
1 parent 3148d6d commit f68e99c
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 69 deletions.
50 changes: 17 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Flutter Music Player
# Kadi Music Player

First Open Source Flutter based Beautiful Material Design Music Player(Online Radio will be added soon.)
OpenSource Flutter Based Music Player with Fantastic UI

# Demo App

[Play Store BETA](https://play.google.com/store/apps/details?id=com.mtechviral.fluttermusicplayer)
* Clone
* Build
* Run

## Features

* [x] Android (iOS Coming Soon)

* [x] Fetch local songs (Inbuilt Permission)
* [x] Fetch local songs (Inbuilt Permission)
* [x] Beautiful UI with multiple themes(Coming Soon)
* [x] Animation
* [x] Full Fledged Example
Expand All @@ -22,6 +24,8 @@ First Open Source Flutter based Beautiful Material Design Music Player(Online Ra
* [x] Album Art
* [x] onComplete
* [x] onDuration / onCurrentPosition
* [x] Full Player controls on bottom bar
* [x] swipe to change song on bottom bar / album images

* Supported formats

Expand All @@ -31,13 +35,10 @@ First Open Source Flutter based Beautiful Material Design Music Player(Online Ra

### Screenshots

<img src="flutey.gif" height="300em" /> <img src="flute1.png" height="300em" /> <img src="flute2.png" height="300em" /> <img src="flute3.png" height="300em" /> <img src="flute4.png" height="300em" /><img src="flute5.png" height="300em" />
<img src="img1.png" height="300em" /> <img src="img2.png" height="300em" />
* Note - This project also has a plugin to fetch songs and use audio player which can be used in any of your projects. Check the below link.
<img src="Screenshot_20190406-150105.png" height="300em" /> <img src="Screenshot_20190406-150116.png" height="300em" /> <img src="Screenshot_20190406-150131.png" height="300em" /> <img src="Screenshot_20190406-150152.png" height="300em" /> <img src="Screenshot_20190406-150214.png" height="300em" /><img src="Screenshot_20190406-150233.png" height="300em" />


### Flute Music Player Plugin

[Plugin](https://github.com/iampawan/Flute-Music-Player)

## iOS

Expand All @@ -53,38 +54,21 @@ I welcome and encourage all pull requests. It usually will take me within 24-48
2. If its a feature, bugfix, or anything please only change code to what you specify.
3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.
5. Check for existing [issues](https://github.com/iampawan/Flutter-Music-Player/issues) first, before filing an issue.
5. Check for existing issues first, before filing an issue.
6. Make sure you follow the set standard as all other projects in this repo do
7. Have fun!

### Created & Maintained By

[Pawan Kumar](https://github.com/iampawan) ([@imthepk](https://www.twitter.com/imthepk)) ([Youtube](https://www.youtube.com/c/MTechViral))
([Insta](https://www.instagram.com/codepur_ka_superhero))

> If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:
>
> * [PayPal](https://www.paypal.me/imthepk/)

# License
## Getting Started

Copyright 2018 Pawan Kumar
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

## Getting Started

For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
### Originally Created By

For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).
[Pawan Kumar](https://github.com/iampawan)
Binary file added Screenshot_20190406-150105.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_20190406-150116.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_20190406-150131.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_20190406-150152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_20190406-150214.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot_20190406-150233.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions lib/data/SongDatabase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,30 @@ class SongDatabase {

}


// Rescan Library, would require an app restart


/* Future<void> rescanLibrary(){
try {
songs = await OriginalSongData.musicFinder.allSongs();
print("Parsed Songs from Storage");
songData = new SongData(songDatabase, songs);
songDatabase = new SongDatabase(
OriginalSongData: songData,
);
songDatabase.initiateOriginalToLocalDatabaseTransfer();
songDatabase.SaveDatatabse();
} catch (e) {
print(e);
print("Failed to get songs: '${e.message}'.");
}
}*/


// helpers to get reading and writing to files

Future<String> get _localPath async {
Expand Down Expand Up @@ -323,4 +347,6 @@ class SongDatabase {
return await file.readAsString();
}



}
38 changes: 2 additions & 36 deletions lib/my_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,32 +130,12 @@ var status;

@override
Widget build(BuildContext context) {
InitMediaState(songData);

return new MPInheritedWidget(songData, _isLoading, new RootPage(),songDatabase);

}

InitMediaState(SongData Data){

if(Data==null){
return;
}


MediaNotification.setListener('pause', () {
Player.pause().then(
(data){
print('paused from notif');
}
);
setState(() => status = 'pause');

});




}

Future<void> hide() async {
print('''
Expand All @@ -164,24 +144,10 @@ var status;
=============================================================
''');
try {
await MediaNotification.hide();
setState(() => status = 'hidden');
Player.songData.AppNotifier.add("hideMedia");
} on PlatformException {

}
}

Future<void> show(title, author) async {
print('''
=============================================================
SHOWING
=============================================================
''');
try {
await MediaNotification.show(title: title, author: author);
setState(() => status = 'play');
} on PlatformException {

}
}
}

0 comments on commit f68e99c

Please sign in to comment.