Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
thank you....but it would be more helpful if you make a video of like button with firebase!
Yeah sure,will make that
Interesting Plugin
Yeah :)
What a wonderful package! Great video :)
Thank you ✨😁
Can we add double tap ? or if we double tap on image take likeButton get lightened , Can we do this ? I yes then How ?
You can wrap the widget within GestureDetector wherein u can define the function for onDoubleTap argument.
how do i save the like? so that every time a user likes, the meal will automatically increase. thank you
U can use setState function to dynamically change the value of likeCount..Let me know if it works out
@@CodeItOut sorry where is setState? Is it like this?LikeButton( size: 40, likeCount: 0, likeBuilder: (bool like) { return Icon( Icons.favorite, color: like ? Colors.red : Colors.blue, size: 40, ); }, countBuilder: (int count, bool like, String text) { // ignore: unused_local_variable var color = like ? Colors.purple : Colors.yellow; Widget wid; setState(() { if (count == 0) wid = Text('Like Postingan iniok'); else wid = Text(text); }); return wid; }, padding: EdgeInsets.only(top: 5.0), ),
Did it work? I was busy with my exams ..so didn't see the notifications
test
thank you....but it would be more helpful if you make a video of like button with firebase!
Yeah sure,will make that
Interesting Plugin
Yeah :)
What a wonderful package! Great video :)
Thank you ✨😁
Can we add double tap ? or if we double tap on image take likeButton get lightened , Can we do this ? I yes then How ?
You can wrap the widget within GestureDetector wherein u can define the function for onDoubleTap argument.
how do i save the like? so that every time a user likes, the meal will automatically increase. thank you
U can use setState function to dynamically change the value of likeCount..Let me know if it works out
@@CodeItOut sorry where is setState? Is it like this?
LikeButton(
size: 40,
likeCount: 0,
likeBuilder: (bool like) {
return Icon(
Icons.favorite,
color: like ? Colors.red : Colors.blue,
size: 40,
);
},
countBuilder: (int count, bool like, String text) {
// ignore: unused_local_variable
var color = like ? Colors.purple : Colors.yellow;
Widget wid;
setState(() {
if (count == 0)
wid = Text('Like Postingan iniok');
else
wid = Text(text);
});
return wid;
},
padding: EdgeInsets.only(top: 5.0),
),
Did it work?
I was busy with my exams ..so didn't see the notifications
test