Skip to content

Instantly share code, notes, and snippets.

@BrianGardnerAtl
Created May 14, 2020 13:34
Set FAB position to EndDocked
@Composable
fun ListScreen(state: MutableState<MutableList<Tweet>>) {
val (scaffoldState, onScaffoldStateChange) = state {
// state content collapsed
}
Scaffold(
scaffoldState = scaffoldState,
topAppBar = {
// top app bar content collapsed
},
bottomAppBar = {
// bottom app bar content collapsed
},
floatingActionButton = {
AddTweetButton()
},
floatingActionButtonPosition = Scaffold.FabPosition.EndDocked,
drawerContent = {
TweetNavigation()
},
bodyContent = {
TweetList(state)
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment