mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Add share FAB button to conversations screen (#2818)
This commit is contained in:
parent
4cfb6a008b
commit
ccad2a1c97
2 changed files with 7 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ fun NavGraphBuilder.contactsGraph(navController: NavHostController, uiViewModel:
|
|||
uiViewModel,
|
||||
onNavigateToMessages = { navController.navigate(ContactsRoutes.Messages(it)) },
|
||||
onNavigateToNodeDetails = { navController.navigate(NodesRoutes.NodeDetailGraph(it)) },
|
||||
onNavigateToShare = { navController.navigate(ChannelsRoutes.ChannelsGraph) },
|
||||
)
|
||||
}
|
||||
composable<ContactsRoutes.Messages>(
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ import androidx.compose.material.icons.automirrored.twotone.VolumeUp
|
|||
import androidx.compose.material.icons.filled.Close
|
||||
import androidx.compose.material.icons.filled.Delete
|
||||
import androidx.compose.material.icons.filled.SelectAll
|
||||
import androidx.compose.material.icons.rounded.QrCode2
|
||||
import androidx.compose.material3.AlertDialog
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.FloatingActionButton
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.RadioButton
|
||||
|
|
@ -70,6 +72,7 @@ fun ContactsScreen(
|
|||
uiViewModel: UIViewModel = hiltViewModel(),
|
||||
onNavigateToMessages: (String) -> Unit = {},
|
||||
onNavigateToNodeDetails: (Int) -> Unit = {},
|
||||
onNavigateToShare: () -> Unit,
|
||||
) {
|
||||
var showMuteDialog by remember { mutableStateOf(false) }
|
||||
var showDeleteDialog by remember { mutableStateOf(false) }
|
||||
|
|
@ -147,6 +150,9 @@ fun ContactsScreen(
|
|||
)
|
||||
}
|
||||
},
|
||||
floatingActionButton = {
|
||||
FloatingActionButton(onClick = onNavigateToShare) { Icon(Icons.Rounded.QrCode2, contentDescription = null) }
|
||||
},
|
||||
) { paddingValues ->
|
||||
val channels by uiViewModel.channels.collectAsStateWithLifecycle()
|
||||
ContactListView(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue