nglauber
11/05/2019, 1:51 AMDrawVector alignment. I’m not sure if it is related but, I’m trying to do this:
FloatingActionButton(
onClick = { ... }
) {
DrawVector(+vectorResource(R.drawable.ic_baseline_add))
}
The icon (which is an vector drawable) is aligned on the top left.
And using this code is throwing an exception.
FloatingActionButton(
icon = imageFromResource(resources, R.drawable.ic_baseline_add),
onClick = { ... }
)
My suggestion would be:
1) the icon parameter supports a vector drawable; or
2) Image component supports a vector drawable.Andrey Kulikov
11/05/2019, 11:35 AMnglauber
11/05/2019, 12:36 PMAndrey Kulikov
11/05/2019, 1:04 PMAndrey Kulikov
11/05/2019, 1:04 PMAndrey Kulikov
11/05/2019, 1:04 PMnglauber
11/05/2019, 3:26 PM