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

[Unrelated] Please provide information on how to fetch data from firebase and use that #4

Closed
Chandra-shekar-shetty opened this issue Aug 6, 2020 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@Chandra-shekar-shetty
Copy link

Describe your suggestion

@Chandra-shekar-shetty Chandra-shekar-shetty added the documentation Improvements or additions to documentation label Aug 6, 2020
@rohansohonee
Copy link
Owner

@Chandra-shekar-shetty

You can first go through the docs of audio_service plugin https://github.com/ryanheise/audio_service/wiki/Tutorial. I have also mentioned this in the README. After going through the above link please describe in detail what part of the sample you want documented. Also please follow the documentation template by filling in the necessary fields.

@rohansohonee rohansohonee changed the title dude can u please provide document or video tutorial for this project Please provide documentation for this sample Aug 6, 2020
@Chandra-shekar-shetty
Copy link
Author

@rohansohonee
I have gone through the official documentations of the audio_service package ,In that example section the author has created two fixed media items,In you are code u are fetching from cloud and you have made use of Dio,which i found little difficult to understand.What i am trying to achieve is that i need to fetch data from firebase and use that.

@rohansohonee rohansohonee changed the title Please provide documentation for this sample [Unrelated] Please provide information on how to fetch data from firebase and use that Aug 6, 2020
@rohansohonee
Copy link
Owner

The sample focuses on demonstrating audio playback. You can refer to Firebase docs for fetching data. Regarding Dio, I fetch the data in JSON, cache it & then decode. I also have some useful comments in the code so please have a look at those. You will also see a musicCatalog.g.dart file under the data folder. This is a generated file.
You can learn more at https://flutter.dev/docs/development/data-and-backend/json#serializing-json-using-code-generation-libraries
Closing this issue as it is unrelated. You can open a new issue, but it must pertain to audio playback.

@KM8Oz
Copy link

KM8Oz commented Aug 7, 2020

Thanks for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants