-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ontap stops responding after setState #3
Comments
plz paste the key snippet of 'generic button' to debug this problem |
@sidetraxaudio use @malikwang Thank you so much, This is a very nice package. But this issues needs to be fixed, I was using this widget in many places and everywhere I was passing |
@kameshWB @sidetraxaudio @malikwang you can copy the entire file in lib/src and modify the file to work with onTap.
onTap and tapPadding needs to be change to non-final variables in _ExpandTapRenderBox |
Great widget however I've experienced a problem:
I have an app-wide generic button utilising expand_tap_area. It works in all situations except this:
OnTap() calls SetState to change the size of some screen elements. It changes the icon for the button pressed and also changes the size of a container. Basically it's being used to change its own icon when pressed (on selected) and also expand a text box container to show more text.
The problem is that Ontap works the first time and does not work again. Swapping out for a gesture detector works fine.
` ShadedIconBtn(
icon: (isExpanded) ? FontAwesomeIcons.arrowCircleUp : FontAwesomeIcons.arrowCircleDown,
Print call also doesn't respond after it's pressed once. If I remove isExpanded bool that affects the rest of the screen elements and the screen doesn't change then the Print statement DOES work as expected.
As mentioned gesture detector works fine.
The text was updated successfully, but these errors were encountered: