Skip to content
Snippets Groups Projects
Commit 3385bc10 authored by RyuZU's avatar RyuZU
Browse files

6

parent 7f006f21
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,8 @@ class MyAppState extends ChangeNotifier {
}
else{
favorites.add(current);
notifyListeners();
}
notifyListeners();
}
}
......@@ -72,6 +72,7 @@ class MyHomePage extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
ElevatedButton.icon(onPressed: (){appState.toggleFavorite();}, icon:Icon(icon), label: Text('Like'),),
SizedBox(width: 10,),
ElevatedButton(onPressed: (){appState.getNext();}, child: Text('Next'),),
],
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment