Thanks! We have it in our roadmap, some unified components which works with both bitmaps and vectors and so you could be able to provide both into such slots. Also we have a bug for imageFromResource to improve the behavior about this exception. For now you can use another overload of FloatingActionButton which accepts children: @Composable() () -> Unit. this allows you to pass any content you want inside the FAB, for example vectors
n
nglauber
11/05/2019, 12:36 PM
Thanks @Andrey Kulikov! I think it is the first one I mentioned, isn’t it?
The problem with it is: I can’t align the icon inside the FAB
a
Andrey Kulikov
11/05/2019, 1:04 PM
yeah, the variant you had, but with some modifications.
Andrey Kulikov
11/05/2019, 1:04 PM
you need to add centering, we can do it like this right now