diff --git a/lib/ui/detail_page.dart b/lib/ui/detail_page.dart index 75262de22..61f50d943 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(