current stand

This commit is contained in:
Myzel394 2023-10-26 15:54:30 +02:00
parent b6d0501c85
commit e7bc1ac0b3
No known key found for this signature in database
GPG Key ID: 50098FCA22080F0F

View File

@ -3,6 +3,8 @@ package app.myzel394.alibi.ui.components.AboutScreen.atoms
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
@ -12,6 +14,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.rememberScrollState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ContentCopy
@ -89,11 +92,14 @@ fun DonationsTile() {
)
}
// TODO: Add LazyColumn, make expandable
Column {
val clipboardManager =
LocalContext.current.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
AnimatedVisibility(
visible = donationsOpened,
enter = expandVertically(),
) {
Column {
for (crypto in CRYPTO_DONATIONS) {
Row(
modifier = Modifier
@ -124,4 +130,5 @@ fun DonationsTile() {
}
}
}
}
}