Click here to Skip to main content
15,559,669 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm making an movie lister app. I made my app like that:

1. The main.dart who run the project and contain all Tmdb (The Movie DataBase) process

2. The root_page.dart who contain all the "immovable" elements (app bar, bottom navigation bar, page view...)

3. The package.dart who contain all the variable and ressources of my project

4. The Pages files (home_page.dart, favorite_page.dart...)(Take note that my project isn't finished).

(Im sorry if you don't understand some text, it's because my app is in french)

If you want more Information go check my git repo and figma file:[^]

(sorry I'm not very good with git and github)

So here's is my problem :

I made a ListView of Card who shows the latest movies on theater (with the help of Tmdb (go check main.dart on my github) ). I wanted to add a "favorite button" (go check my figma file).

The Issue is that I used ListView.builder() so when I added the button and the ontap(), all the button change the color at the same time.

This is my home_page.dart:

Cinema-Helper/home_page.dart at main · gs-skalli/Cinema-Helper · GitHub[^]

What I have tried:

check my git repo for my code :
Cinema-Helper/home_page.dart at main · gs-skalli/Cinema-Helper · GitHub[^]
Updated 19-Oct-21 5:39am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900