mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 08:15:26 +02:00
fix: Do not remember width and height to update correctly
Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
parent
12938e9122
commit
7e9d057535
@ -25,7 +25,6 @@ import androidx.compose.foundation.layout.FlowRowScope
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Modifier
|
||||
|
||||
/**
|
||||
@ -51,8 +50,8 @@ fun KeypadFlow(
|
||||
@IntRange(0, 100) verticalPadding: Int = 10,
|
||||
content: @Composable FlowRowScope.(width: Float, height: Float) -> Unit,
|
||||
) {
|
||||
val height: Float = remember { (1f - verticalPadding / 100f) / rows }
|
||||
val width: Float = remember { (1f - horizontalPadding / 100f) / columns }
|
||||
val height: Float = (1f - verticalPadding / 100f) / rows
|
||||
val width: Float = (1f - horizontalPadding / 100f) / columns
|
||||
|
||||
FlowRow(
|
||||
modifier = modifier,
|
||||
|
Loading…
x
Reference in New Issue
Block a user