Add copyable id in charactereditsheet
This commit is contained in:
parent
ca5d01c0ca
commit
5a55d38fb2
1 changed files with 14 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.offset
|
import androidx.compose.foundation.layout.offset
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.rememberScrollState
|
import androidx.compose.foundation.rememberScrollState
|
||||||
|
import androidx.compose.foundation.text.selection.SelectionContainer
|
||||||
import androidx.compose.foundation.verticalScroll
|
import androidx.compose.foundation.verticalScroll
|
||||||
import androidx.compose.material.Icon
|
import androidx.compose.material.Icon
|
||||||
import androidx.compose.material.IconButton
|
import androidx.compose.material.IconButton
|
||||||
|
|
@ -241,11 +242,20 @@ fun CharacterSheetEdit(
|
||||||
.padding(all = 16.dp),
|
.padding(all = 16.dp),
|
||||||
verticalArrangement = Arrangement.spacedBy(space = 16.dp)
|
verticalArrangement = Arrangement.spacedBy(space = 16.dp)
|
||||||
) {
|
) {
|
||||||
Text(
|
Row(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
|
) {
|
||||||
|
Text(
|
||||||
style = MaterialTheme.lwa.typography.base.caption,
|
style = MaterialTheme.lwa.typography.base.caption,
|
||||||
text = "id : ${form.id.value}"
|
text = "id : "
|
||||||
)
|
)
|
||||||
|
SelectionContainer {
|
||||||
|
Text(
|
||||||
|
style = MaterialTheme.lwa.typography.base.caption,
|
||||||
|
text = form.id.value,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TextFieldWrapper(
|
TextFieldWrapper(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue