-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLibrariesScreen.kt
More file actions
48 lines (46 loc) · 1.63 KB
/
LibrariesScreen.kt
File metadata and controls
48 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.rickyhu.hushkeyboard.libraries
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import com.mikepenz.aboutlibraries.ui.compose.m3.LibrariesContainer
import com.rickyhu.hushkeyboard.R
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun LibrariesScreen(onBackClick: () -> Unit = {}) {
Scaffold(
topBar = {
TopAppBar(
title = {
Text(
text = stringResource(R.string.libraries),
style = MaterialTheme.typography.headlineMedium,
)
},
navigationIcon = {
IconButton(onClick = onBackClick) {
Icon(
painter = painterResource(R.drawable.ic_return),
contentDescription = stringResource(R.string.libraries),
)
}
},
)
},
) { padding ->
LibrariesContainer(
modifier = Modifier
.fillMaxSize()
.padding(padding),
)
}
}