Package ru.surf.template.drawer

A package containing a menu and its components.

Menu

The package contains classes responsible for managing the menu and displaying it. Also event handling.

Types

AppDrawerActions
Link copied to clipboard
sealed class AppDrawerActions

Application menu actions

Functions

AppDrawer
Link copied to clipboard
@Composable
fun AppDrawer(scaffoldState: ScaffoldState = rememberScaffoldState(), currentRoute: String = UsersNav.MainNav.ListUsersNavScreen.route, onActions: (AppDrawerActions) -> Unit = {})

Application menu

AppDrawerItem
Link copied to clipboard
@Composable
fun AppDrawerItem(label: String, icon: ImageVector, isSelected: Boolean = false, onClick: () -> Unit = {})

Application menu item

Preview
Link copied to clipboard
@Preview(uiMode = 16, device = "id:pixel_4")
@Preview(uiMode = 32, device = "id:Nexus 6")
@Composable
private fun Preview()
SetBackDispatcherAppDrawer
Link copied to clipboard
@Composable
fun SetBackDispatcherAppDrawer(scaffoldState: ScaffoldState)

Init listen dispatcher