diff --git a/lib/ui/detail_page.dart b/lib/ui/detail_page.dart index 75262de22e2cfab7498b27a9ec317e2df8ada246..61f50d94363b65a1cd5f1b6b74ba8aaf143543cf 100644 --- a/lib/ui/detail_page.dart +++ b/lib/ui/detail_page.dart @@ -89,7 +89,7 @@ class _DetailPageState extends State { AppBar _buildAppBar() { final actions = List(); - if (widget.photos[_selectedIndex].localId != null) { + if (_photos[_selectedIndex].localId != null) { actions.add(_getFavoriteButton()); } actions.add(IconButton(