New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange behaviour with like count widget #12
Comments
please provide runable demo to show your case. |
https://drive.google.com/file/d/15c3dqPNE9146FNqM8ZplOEiACLaukQCg/view?usp=drivesdk You can view the video here. |
I need to know what code is causing this problem,i can't just think about it |
this is the code im using |
I guess the problem is with LikeCountWidgetBuilder |
countBuilder: (int count, bool isLiked, String text) {
var color = Colors.grey;
Widget result;
result = Text(
text,
style: TextStyle(color: color),
);
return result;
},
likeCountPadding: EdgeInsets.only(top: 15.0),
countDecoration: (Widget count) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
count,
SizedBox(
width: 10.0,
),
Text(
"loves",
style: TextStyle(color: Colors.indigoAccent),
)
],
);
},
), i think you need countDecoration |
no help same problem occurs when I add countDecoration code I guess that double text is appearing while transition may be there is something to do while count is increased or decreased but I don't know why it only occurs when count > 10 |
don't use count to calculate text to show。 please take a look at demo
|
that space issue was being caused because of padding in container i added for now its resolved can you add a support for changing background colour ? |
please take a look at demo。。1k has demo |
countDecoration for background |
i am taling about changing the whole background including like icon as you can see in the image whole widget provided by the library passes light grey colour |
change whole background when like count is changing? |
no i want to change the background colour whole time example my app them colour is white so will need to add every widget with background colour set to white i just tested with count of 1000, 9999, 10000 support of 1k is missing i guess and transistion animation is not working above like of 999 |
does it work for you about background? Container(
child: LikeButton(),
color: Colors.grey,
); 999=>1k is support transistion animation,please take a look at first like button demo. |
We noticed that your issue can't tell the specific bug/issue of this package, so plz be more specific and track only one problem per issue, thanks. |
I noticed this issue
if like count is greater than 10 ex, 11, 12 etc...
two text widgets are shown
there are no errors shown nothing don't know what going wrong
if like count is less than 10 it works fine
you can refer the below image
when setState() is called it gets back to normal but if someone interacts with It it once again reappears
and support for changing background colour is also required as you can see now background is light grey
please provide the solution as soon as possible as I am using this library in live app and users are facing this issue
The text was updated successfully, but these errors were encountered: