Ashwani Singh
11/19/2020, 11:46 AMScaffold(
bottomBar = {
// Bottom bar code
},
)
But bottom Bar render in bottom, with any offset from bottom or transparent margin.
Is there any way/sample?Timo Drick
11/19/2020, 1:12 PMAshwani Singh
11/19/2020, 1:21 PMTimo Drick
11/19/2020, 1:22 PMAshwani Singh
11/19/2020, 1:23 PMTimo Drick
11/19/2020, 1:24 PMAshwani Singh
11/19/2020, 1:26 PMScaffold(
bottomBar = {
// Bottom bar code
},
)
Timo Drick
11/19/2020, 1:27 PMColumn(modifier = Modifier.drawOpacity(appBarOpacity)) {
BottomAppBar(...) {
content()
}
}
Ashwani Singh
11/19/2020, 1:29 PMScaffold(
bottomBar = {
// Bottom bar code
},
)
Timo Drick
11/19/2020, 1:31 PMScaffold(
bottomBar = {
Column(modifier = Modifier.drawOpacity(appBarOpacity)) {
BottomAppBar(...) {
content()
}
}
},
)
But yes maybe not perfect solutionAshwani Singh
11/19/2020, 1:33 PMTimo Drick
11/19/2020, 1:37 PMScaffold(
bodyContent = {
ImageList()
},
bottomBar = {
BottomAppBar(backgroundColor = Color.Transparent) {
IconButton(onClick = {}) {
Icon(imageVector = <http://Icons.Default.Menu|Icons.Default.Menu>)
}
IconButton(onClick = {}) {
Icon(imageVector = Icons.Default.Add)
}
Spacer(modifier = Modifier.weight(1f))
IconButton(onClick = {}) {
Icon(imageVector = Icons.Default.Search)
}
}
}
)
Scaffold(
bodyContent = {
ImageList(remoteImageList)
},
bottomBar = {
Row(modifier = Modifier.fillMaxWidth().padding(8.dp).background(Color.LightGray.copy(alpha = 0.6f), shape = RoundedCornerShape(12.dp))) {
IconButton(onClick = {}) {
Icon(imageVector = <http://Icons.Default.Menu|Icons.Default.Menu>)
}
IconButton(onClick = {}) {
Icon(imageVector = Icons.Default.Add)
}
Spacer(modifier = Modifier.weight(1f))
IconButton(onClick = {}) {
Icon(imageVector = Icons.Default.Search)
}
}
}
)
Ashwani Singh
11/20/2020, 12:04 PM