yako-dev / flutter_badges

A flutter package for creating badges.

Home Page:https://pub.dev/packages/badges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Button in badgeContent not work?

nguyenquanghuy19 opened this issue · comments

I have a widget (button) in param badgeContent. When i install the app for the first time, the button doesn't work but when i touch the 3rd time it works.
Can anyone tell me what's wrong with it?

@nguyenquanghuy19 please provide the reproducible example

@yadaniyil
I have a login screen like this and a button not working when i install the app for the first time is method _buildSignInBtn().
test

Untitled

Update issue: when i touch only in red area the button works
Untitled

@nguyenquanghuy19 Wow, this is weird usage for the badge, maybe you better use another approach here?
This is how it works in the current version of the badges in the pub.dev (2.0.3). There is no proper onTap for the badge, so you cannot achieve what you want.
But it's already implemented in the dev branch. The onTap for the badge will also be introduced in the new 3.0.0 version and will be published within a week.