Bug in FAB (Custom icon image)

I checked out Bugs in Kodular Eagle before creating a new topic

Describe your issue

The custom icon image of FAB do not appear while we toggle the visibility of the FAB.

So the setup of my project is as follows
The FAB’s visibility is set to false from the designer. Now from blocks when the screen initializes, the FAB is set to visible with custom image icon which we also set from block itself
Now I have 2 buttons to toggle the FAB’s visibility. As said earlier, when the screen initializes, everything looks good. The FAB’s custom icon is also visible.

But the problem occurs when I hide the FAB once and then again make it visible. At this time the FAB custom icon image is not visible/present

Steps to reproduce the issue

Just simply try to toggle FAB’s visibility once the screen initializes

Expected Behaviour

The FAB’s custom icon image should also be visible along with FAB

Actual Behaviour

Only FAB is visible after toggling it’s visibility. The Custom icon image doesn’t appear

Note that everything works normal if I set FAB’s icon image from designer

Show your Blocks

blocks (61)

Android version

Android 9.0

If any one want to test this, then :point_down:

EnthusiasticRedAnaconda.apk (5.0 MB)

Testing steps

  1. After the screen initializes, Click on Show VA2 button. The FAB should hide
  2. Then Click on Show VA1 button. The FAB is again visible but without the image icon

Below is the small screen-recording of the described bug

1 Like

What happens if you assign a color to the icon when you make it visible? #FFFFFF

Tried that also but in vain. And I think this should not be the case(assigning color) because as told in the post I am using the icon image and that image is white. So it should be visible whenever FAB appears.

Besides this :point_down:

would only have effect if I am using Material icon in-place of custom image

Any update here? Is there any workaround for this? Or am I missing something?


1 Like

Ok let me try

Thanks @Boban. Your reply solved the above issue. But the same logic is incorporated in one of my project. But there this solution isn’t working. I am wandering why is this happening.

Anyways I am marking your reply as solution as it solved this query. But I need to solve the above mentioned issue.

Should I move this in #discuss category? :thinking:

I’m not sure why it is not working in your other project…

Btw, have you tried working with this blocks instead of visible true/false


1 Like

Tried this not working :slightly_frowning_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.