Minor refactor

This commit is contained in:
Vishnu Mohandas 2020-05-25 21:36:52 +05:30
parent 96ce1f5908
commit d256a000f0

View file

@ -89,7 +89,7 @@ class _DetailPageState extends State<DetailPage> {
AppBar _buildAppBar() {
final actions = List<Widget>();
if (widget.photos[_selectedIndex].localId != null) {
if (_photos[_selectedIndex].localId != null) {
actions.add(_getFavoriteButton());
}
actions.add(IconButton(