法的空间

Results 296 comments of 法的空间

please provide runnable demo

could you provide a simple runable demo? i can't see clearly with little code for this problem.

> I had the same issue and this is how I solved it. > > Don't set the "isLiked" value but instead use the "likeBuilder" to render the correct widget...

https://github.com/fluttercandies/extra_hittest_area this is my other package, maybe it will help

1.add key LikeButton 2.put LikeButton into a bigger container 3.when a bigger container ontap, call key.ontap

1.sometime,we should send a request await response back, then we decide change isLiked or not. 2.we shouldn't change _isOn at tap, _isOn is Initial state

class A { bool isLiked=false; } save status by data not the ui

```dart class A { bool isLiked = false; } List list = List.filled(1000, A()); ListView.builder( itemBuilder: (b, index) { var item = list[index]; return LikeButton( isLiked: item.isLiked, onTap: (bool isLiked)...