Package com.keygenqt.viewer.android.compose.base

Functions

AppImageUser
Link copied to clipboard
@Composable
fun AppImageUser(url: String, modifier: Modifier = Modifier)

Image user with default image

AppScaffold
Link copied to clipboard
@Composable
fun AppScaffold(modifier: Modifier = Modifier, navigationDispatcher: NavigationDispatcher?, topBarTitle: String? = null, topBarLoading: Boolean = false, topBarActions: @Composable (RowScope) -> Unit? = null, swipeRefreshEnable: Boolean = false, swipeRefreshLoading: Boolean = false, swipeRefreshAction: () -> Unit = {}, content: @Composable () -> Unit)
@Composable
fun <T> AppScaffold(modifier: Modifier = Modifier, backData: T? = null, navigationDispatcher: NavigationDispatcher?, topBarTitle: String? = null, topBarLoading: Boolean = false, topBarActions: @Composable (RowScope) -> Unit? = null, swipeRefreshEnable: Boolean = false, swipeRefreshLoading: Boolean = false, swipeRefreshAction: () -> Unit = {}, content: @Composable () -> Unit)

Main scaffold for app

AppTopBarSmall
Link copied to clipboard
@Composable
fun <T> AppTopBarSmall(title: String, scrollBehavior: TopAppBarScrollBehavior, navigationDispatcher: NavigationDispatcher?, backData: T? = null, loading: Boolean = false, actions: @Composable (RowScope) -> Unit? = null)

App top bar small material 3

FormError
Link copied to clipboard
@Composable
fun FormError(modifier: Modifier = Modifier, text: String = "Box Text Field Error Preview", content: @Composable () -> Unit? = null)

Box with error for forms

FormSuccess
Link copied to clipboard
@Composable
fun FormSuccess(modifier: Modifier = Modifier, text: String = "Box Text Field Success Preview", content: @Composable () -> Unit? = null)

Box with success for forms

LanguageImage
Link copied to clipboard
@Composable
fun LanguageImage(language: String)

Image with language icon

Preview
Link copied to clipboard
@Preview(uiMode = 16, device = "id:pixel_4")
@Preview(uiMode = 32, device = "id:pixel_4")
@Composable
private fun Preview()
@Preview(uiMode = 16, device = "id:pixel_4")
@Preview(uiMode = 32, device = "id:pixel_4")
@Composable
private fun Preview()
@Preview(uiMode = 16, device = "id:pixel_4")
@Preview(uiMode = 32, device = "id:pixel_4")
@Composable
private fun Preview()
@Preview(uiMode = 16, device = "id:pixel_4")
@Preview(uiMode = 32, device = "id:pixel_4")
@Composable
private fun Preview()
RotateIconSortIcon
Link copied to clipboard
@Composable
fun RotateIconSortIcon(enabled: Boolean = true, isRotate: Boolean = true, onClick: () -> Unit = {})