File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class FavoriteVideoViewModel extends ChangeNotifier {
53
53
? .map ((e) => int .parse (e, radix: 10 ))
54
54
.toSet () ??
55
55
{};
56
+ notifyListeners ();
56
57
}
57
58
58
59
Future <void > toggleFavoriteVideo (int prID) async {
Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ class RecommendationWidget extends StatelessWidget {
42
42
ScaffoldMessenger .of (context).removeCurrentSnackBar ();
43
43
ScaffoldMessenger .of (context).showSnackBar (SnackBar (
44
44
backgroundColor: Theme .of (context).colorScheme.error,
45
- content: Text ("https://arxiv.org/abs/${paper .arxivId } is not a valid URL" ),
45
+ content: Text (
46
+ "https://arxiv.org/abs/${paper .arxivId } is not a valid URL" ),
46
47
action: SnackBarAction (
47
48
label: "OK" ,
48
49
textColor: Theme .of (context).colorScheme.onError,
49
- onPressed: (){},
50
+ onPressed: () {},
50
51
),
51
52
));
52
53
},
You can’t perform that action at this time.
0 commit comments