feat: Enhance back navigation in AuthFlow and add back button in WelcomeScreen for better user experience
This commit is contained in:
@@ -436,8 +436,12 @@ fun ChatsListScreen(
|
||||
.clip(RoundedCornerShape(12.dp))
|
||||
.background(Color(0x20FF3B30))
|
||||
.clickable {
|
||||
scope.launch { drawerState.close() }
|
||||
onLogout()
|
||||
scope.launch {
|
||||
drawerState.close()
|
||||
// Wait for drawer to close before logout
|
||||
kotlinx.coroutines.delay(150)
|
||||
onLogout()
|
||||
}
|
||||
}
|
||||
.padding(horizontal = 16.dp, vertical = 12.dp),
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
@@ -484,6 +488,7 @@ fun ChatsListScreen(
|
||||
animationSpec = tween(400)
|
||||
)
|
||||
) {
|
||||
key(isDarkTheme) {
|
||||
TopAppBar(
|
||||
navigationIcon = {
|
||||
IconButton(
|
||||
@@ -704,6 +709,7 @@ fun ChatsListScreen(
|
||||
actionIconContentColor = textColor
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
floatingActionButton = {
|
||||
|
||||
Reference in New Issue
Block a user