-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
FAB button image not showing after init #907
Comments
Would you be able to send me a sample showing this? Is this tested on the simulator or device? What version of Material are you using? Thank you! |
Hey! I haven't heard from you. When you have a sample project reproducing the issue, please reopen this. Thank you! |
Here is a xcode project that I created that reproduces this issue: https://github.com/tomdaniel0x01/fab-menu-bug I am using Material (2.12.1) and it happens on both the simulator and the device. |
Thank you! I will take a look :) |
@tomdaniel0x01 So I found the bug. The issue arises because the size is being set after the left and bottom positioning. I am looking into it. You can workaround this issue by moving the size constraint before the position constraints: view.layout(fabMenu).size(CGSize(width: 56, height: 56)).bottom(17).left(10) |
The issue has been completely resolved in Material 2.12.3. Thank you for sharing this issue. All the best! |
@DanielDahan Thank you so much! |
this fix broke something inside the button and now |
@yasirmturk Can you share a sample or some code that demonstrates this and your usage? |
@yasirmturk Can you send over a sample of this, so I can reproduce the issue? As well, I would open a new issue for this, as now this issue has been closed and the description at the top is not describing the issue you are facing. Thank you! |
you can use the code i have posted to reproduce the issue... just make any button with both icon and text and run it with both 2.12.2 and 2.12.3 you will see |
@yasirmturk Please open a new issue for this. Tagging this issue on the current one is not effective. Thank you :) |
okay |
I have created a FAB button using
fabButton = FABButton(image: Icon.cm.add, tintColor: Color.grey.darken3)
but the image does not display until the button is touched.I have tried setting the image outside of init which still does not work.
The text was updated successfully, but these errors were encountered: