mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
fix: Only show ValueOneSummary if value is available
Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
parent
ad107b0143
commit
a07aa51163
@ -493,15 +493,17 @@ private fun Default(
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
ValueOneSummary(
|
if (uiState.result is ConverterResult.Default && uiState.unitTo.factor >= BigDecimal.ZERO) {
|
||||||
modifier = with(density) {
|
ValueOneSummary(
|
||||||
Modifier
|
modifier = with(density) {
|
||||||
.fillMaxWidth()
|
Modifier
|
||||||
.height(dragState.offset.absoluteValue.toDp())
|
.fillMaxWidth()
|
||||||
.horizontalScroll(rememberScrollState())
|
.height(dragState.offset.absoluteValue.toDp())
|
||||||
},
|
.horizontalScroll(rememberScrollState())
|
||||||
uiState = uiState,
|
},
|
||||||
)
|
uiState = uiState,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(boxWithConstraintsScope.maxHeight * 0.03f))
|
Spacer(modifier = Modifier.height(boxWithConstraintsScope.maxHeight * 0.03f))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user