How to load Categories with Image & Quotes (from Firebase) into Cards


immagine

:grin:

2 Likes

I have a problem with the button event in screen 1, when I add a link and text in the text box, I want to see this structure in Firebase,
I have a problem with the button event in screen 1, when I add a link and text in the text box, I want to see this structure in Firebase,

{
“Categories”: {
“Motivation”: {
“image”: “https://example.com/motivation.jpg”,
“data”: {
“1”: “Believe in yourself and all that you are.”,
“2”: “Dream big and dare to fail.”,
“3”: “Success is not final, failure is not fatal.”
}
},
“Love”: {
“image”: “https://example.com/love.jpg”,
“data”: {
“1”: “Love is not what you say, love is what you do.”,
“2”: “In true love, there is no ending.”,
“3”: “You are my today and all of my tomorrows.”
}
},
“Friendship”: {
“image”: “https://example.com/friendship.jpg”,
“data”: {
“1”: “Friendship is the golden thread that ties the heart of all the world.”,
“2”: “A real friend is one who walks in when the rest of the world walks out.”,
“3”: “Good friends are like stars, you don’t always see them but you know they’re always there.”
}
}
}
}

But it doesn’t seem to be happening
And I can’t get the data from the db on the home screen, which is what confuses me, I’m trying but …:relieved_face::relieved_face:

Why are you using this method, instead of getting the data manually with when screen1intiallize? Just get the data and use it, what if you enter incorrect value?

1 Like

On screen 1 there is an admin system, from which in the future I can send data in the form of images and text directly, and the sent data can be displayed on the home screen, which is what I need.

Also you marked your post as solution, why? Does that mean you fixed it?

Edited can you focus on fixing the issue first? Also screen one it’s a door, anyone need to enter inside should pass through that door (screen one) so admin panel can’t be in screen one

:green_heart:

To correctly save the data in JSON format, you need to use this method with the Web component.

I suggest you check out this website, it has really a lot of useful information.

:raising_hands:TimAi2 :raising_hands:

1 Like

No, that was a mistake, sorry, my problem is not solved yet, that’s what I’m focusing on.