mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-22 02:52:37 -05:00
add info button to LocationsScreen top bar to show long press info snackbar
This commit is contained in:
1 parent
bf0ceca34d
commit
ea10e14735
1 file changed
+8
-1
+8
-1
@@ -110,7 +110,7 @@ fun LocationsScreen(
|
||||
floatingActionButton = {
|
||||
FloatingButton(navController)
|
||||
},
|
||||
floatingActionButtonPosition = FabPosition.Center
|
||||
floatingActionButtonPosition = FabPosition.Center,
|
||||
) { paddingValues ->
|
||||
Box(
|
||||
modifier = Modifier
|
||||
@@ -185,6 +185,13 @@ private fun TopBar(onBack: () -> Unit, isTabletLike: Boolean) {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
actions = {
|
||||
IconButton(onClick = {
|
||||
SnackbarManager.show(R.string.location_long_press_info)
|
||||
}, shapes = IconButtonDefaults.shapes()) {
|
||||
Symbol(R.drawable.info_24px)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user