Updated on 2026-08-14
This commit is contained in:
parent
f5b50fcbdd
commit
41171e9e0c
14 changed files with 328 additions and 37 deletions
|
|
@ -16,6 +16,7 @@ import androidx.compose.ui.graphics.PathEffect
|
|||
import androidx.compose.ui.graphics.StrokeJoin
|
||||
import androidx.compose.ui.graphics.drawscope.Stroke
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.text.drawText
|
||||
import androidx.compose.ui.text.rememberTextMeasurer
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
|
|
@ -32,6 +33,7 @@ import com.tangem.core.ui.extensions.resolveReference
|
|||
import com.tangem.core.ui.extensions.stringResourceSafe
|
||||
import com.tangem.core.ui.res.TangemColorPalette
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
import com.tangem.core.ui.test.QrCodeScreenTestTags
|
||||
import com.tangem.feature.qrscanning.impl.R
|
||||
import com.tangem.feature.qrscanning.inner.MLKitBarcodeAnalyzer
|
||||
import java.util.concurrent.ExecutorService
|
||||
|
|
@ -87,6 +89,7 @@ internal fun QrScanningContent(
|
|||
},
|
||||
),
|
||||
tint = TangemColorPalette.White,
|
||||
modifier = Modifier.testTag(QrCodeScreenTestTags.FLASHLIGHT_BUTTON),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -96,6 +99,7 @@ internal fun QrScanningContent(
|
|||
onClicked = uiState.onGalleryClick,
|
||||
),
|
||||
tint = TangemColorPalette.White,
|
||||
modifier = Modifier.testTag(QrCodeScreenTestTags.GALLERY_BUTTON),
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import androidx.compose.runtime.getValue
|
|||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.text.SpanStyle
|
||||
import androidx.compose.ui.text.buildAnnotatedString
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
|
|
@ -27,6 +28,7 @@ import com.tangem.core.ui.components.containers.FooterContainer
|
|||
import com.tangem.core.ui.components.inputrow.InputRowRecipient
|
||||
import com.tangem.core.ui.extensions.*
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
import com.tangem.core.ui.test.SendAddressScreenTestTags
|
||||
import com.tangem.features.send.v2.api.subcomponents.destination.entity.DestinationRecipientListUM
|
||||
import com.tangem.features.send.v2.api.subcomponents.destination.entity.DestinationTextFieldUM
|
||||
import com.tangem.features.send.v2.api.subcomponents.destination.entity.DestinationUM
|
||||
|
|
@ -38,6 +40,7 @@ import kotlinx.collections.immutable.ImmutableList
|
|||
private const val ADDRESS_FIELD_KEY = "ADDRESS_FIELD_KEY"
|
||||
private const val MEMO_FIELD_KEY = "MEMO_FIELD_KEY"
|
||||
|
||||
@Suppress("LongMethod")
|
||||
@Composable
|
||||
internal fun SendDestinationContent(
|
||||
state: DestinationUM,
|
||||
|
|
@ -53,7 +56,8 @@ internal fun SendDestinationContent(
|
|||
LazyColumn(
|
||||
modifier = Modifier // Do not put fillMaxSize() in here
|
||||
.background(TangemTheme.colors.background.tertiary)
|
||||
.padding(horizontal = 16.dp),
|
||||
.padding(horizontal = 16.dp)
|
||||
.testTag(SendAddressScreenTestTags.CONTAINER),
|
||||
) {
|
||||
addressItem(
|
||||
address = address,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue