Hello, I'm trying to create a `BottomAppBar` insid...
# compose
a
Hello, I'm trying to create a
BottomAppBar
inside a
Scaffold
, a simple one, but keeps showing me an error Type mismatch related to this
((BottomAppBar.FabConfiguration?) → Unit)?
m
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