From 3385bc10ce9a502bb55852db100b7ad0e821b467 Mon Sep 17 00:00:00 2001 From: RyuZU <dbrua1222@naver.com> Date: Wed, 5 Jun 2024 18:56:24 +0900 Subject: [PATCH] 6 --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index b4643af..b90f1ed 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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'),), ], ), -- GitLab