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

widget.actors[index].profilePath can be null for some actors #1

Open
guyulmaz opened this issue Apr 16, 2020 · 0 comments
Open

widget.actors[index].profilePath can be null for some actors #1

guyulmaz opened this issue Apr 16, 2020 · 0 comments

Comments

@guyulmaz
Copy link

guyulmaz commented Apr 16, 2020

list_actors_widget.dart

CachedNetworkImage(
imageUrl: Constants.baseUrlBackdropImg +
(widget.actors[index].profilePath ?? "null"),
height: 180,
width: 120,
fit: BoxFit.fill,
errorWidget: (context, url, error) => Icon(Icons.error),
),
Positioned(
top: 150,
child: Container(
width: 120,
child: Text(
widget.actors[index].name??"NAME NOT EXIST!",
style: TextStyle(color: Colors.white),
textAlign: TextAlign.center,
),
),
)

By the way thank you very much for this example app, it helped me lot to understand mobx and flutter_modular :)

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

1 participant