, a simple one, but keeps showing me an error Type mismatch related to this
((BottomAppBar.FabConfiguration?) → Unit)?
m
matvei
07/08/2020, 8:57 AM
I believe you're passing bottomBar @Composable lambda reference directly as a param? This won't work because of lambda param being passed (FabConfiguration).
You need to change code from
Scaffold(bottomBar = myBottomBarLambda)
to
Scaffold(bottomBar { myBottomBarLambda() })
Having said that, in dev14 there's to FabConfiguration needed, so in the latest release there will be no such problem.
Let me know if it helped