https://kotlinlang.org logo
k

Kazemihabib1996

03/13/2020, 4:02 PM
Is it possible to change TopAppBar's height without creating new one? it doesn't accept modifier and in source code the height is hardcoded
Copy code
Surface(color = color, contentColor = contentColor, elevation = elevation, shape = shape) {
        Row(
            LayoutWidth.Fill + LayoutPadding(
                start = AppBarHorizontalPadding,
                end = AppBarHorizontalPadding
            ) + LayoutHeight(AppBarHeight),
            arrangement = Arrangement.SpaceBetween,
            children = children
        )
    }
l

Louis Pullen-Freilich [G]

03/13/2020, 6:25 PM
Unfortunately not currently, but modifier param has been added and will be available in the next release. (We need to add modifier params to all components, it's just a long process)
👍 3
5 Views