Add selectable text to the adventure detail.
This commit is contained in:
parent
4ccf578f45
commit
f43af80f7c
1 changed files with 28 additions and 25 deletions
|
|
@ -14,6 +14,7 @@ import androidx.compose.foundation.lazy.LazyColumn
|
|||
import androidx.compose.foundation.lazy.LazyListState
|
||||
import androidx.compose.foundation.lazy.itemsIndexed
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
import androidx.compose.foundation.text.selection.SelectionContainer
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Refresh
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
|
|
@ -206,6 +207,7 @@ private fun AdventureDetailContent(
|
|||
}
|
||||
}
|
||||
)
|
||||
SelectionContainer {
|
||||
LazyColumn(
|
||||
state = lazyListState,
|
||||
contentPadding = paddingValues,
|
||||
|
|
@ -238,6 +240,7 @@ private fun AdventureDetailContent(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private val TitleLayoutInfoSaver: Saver<TitleLayoutInfo?, Any> = run {
|
||||
val positionKey = "position"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue