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

Firebase Database #2

Closed
RaviKumarK25 opened this issue Jul 2, 2020 · 5 comments
Closed

Firebase Database #2

RaviKumarK25 opened this issue Jul 2, 2020 · 5 comments

Comments

@RaviKumarK25
Copy link

Hi,

I have created my firebase instance and generated google-services.json file and added in android/app path but database/tables are not created when i run this project so please tell me where i am wrong? i want to add any connections in project files? I am new to flutter so please guide me. I am getting an error in videos_api.dart page as "Exception has occurred. RangeError (RangeError (index): Invalid value: Valid value range is empty: 0)" please guide me.

@woinbo
Copy link

woinbo commented Jul 7, 2020

Same error I'm getting but, I have all data in firebase, and app is also retriving data perfectly, but then too it shows the same error
"I am getting an error in videos_api.dart page as Exception has occurred. RangeError (RangeError (index): Invalid value: Valid value range is empty: 0)"

loadVideo method is not working ....

@RaviKumarK25
Copy link
Author

RaviKumarK25 commented Jul 7, 2020 via email

@woinbo
Copy link

woinbo commented Jul 17, 2020

Hi ankit, please tell me videos are playing in app?

On Tue, Jul 7, 2020 at 4:46 PM Ankit Sagar notifications@github.com wrote:

Same error I'm getting but, I have all data in firebase, and app is also
retriving data perfectly, but then too it shows the same error
"I am getting an error in videos_api.dart page as Exception has occurred.
RangeError (RangeError (index): Invalid value: Valid value range is empty:
0)"

loadVideo method is not working ....


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQE27H22NN4VXZOUBNOTSQTR2L7ZDANCNFSM4OO3SZ5Q
.

Thanks for reply me , but I resolved the error , actually the error , was in videoViewed since it is a string , hence I added .Split('') method and it worked perfectly, the videos are also playing perfectly,
Thanks for reply back and helping me out with this

@RaviKumarK25
Copy link
Author

Hi Ankit please share database structure and complete working code.

@salvadordeveloper
Copy link
Owner

Fixed. New sample data is added automatically to Firestore, if you want edit or add more data edit the file "demo_data.dart", is very easy to add or remove videos, you need to use json format.

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

No branches or pull requests

3 participants