Hi all, how do we appropriately put a FloatingActi...
# compose
m
Hi all, how do we appropriately put a FloatingActionBar in our layout? I did something like this:
Copy code
setContent {
            CustomTheme {
                FlexColumn() {
                    inflexible {
                        TopAppBar(title = { Text(text = "Nba Team") })
                    }
                    flexible(flex = 1f) {
                        VerticalScroller {
                            Column {
                                NbaCard3(nbaList)
                            }
                        }
                    }
                    inflexible {
                        Container(
                            alignment = Alignment.TopRight,
                            modifier = ExpandedWidth,
                            padding = EdgeInsets(16.dp)
                        ) {
                            FloatingActionButton(
                                icon = +imageResource(android.R.drawable.ic_input_add)
                            )
                        }
                    }
                }
            }
}
I want to put it on the bottom right of the screen(it should be on top of the list), I tried use Stack but I am not able to find the right way. this is the current layout result from the code above :