mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Text paddings
This commit is contained in:
parent
95a401581d
commit
ef0db15f11
@ -173,12 +173,13 @@ private fun CalculatorScreen(
|
||||
}
|
||||
.toFloat()
|
||||
}
|
||||
),
|
||||
)
|
||||
.padding(top = 8.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
InputTextField(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),
|
||||
value = TextFieldValue(
|
||||
text = uiState.input,
|
||||
selection = TextRange(uiState.selection.first, uiState.selection.last)
|
||||
@ -187,7 +188,7 @@ private fun CalculatorScreen(
|
||||
pasteCallback = addSymbol
|
||||
)
|
||||
Text(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),
|
||||
text = uiState.output,
|
||||
textAlign = TextAlign.End,
|
||||
softWrap = false,
|
||||
|
@ -89,12 +89,14 @@ internal fun HistoryList(
|
||||
// We do this so that callback for items height is called only once
|
||||
item {
|
||||
HistoryListItem(
|
||||
modifier = Modifier.onPlaced { historyItemHeightCallback(it.size.height) },
|
||||
modifier = Modifier.onPlaced { historyItemHeightCallback(it.size.height) }.padding(horizontal = 8.dp),
|
||||
historyItem = historyItems.first()
|
||||
)
|
||||
}
|
||||
items(historyItems.drop(1)) { historyItem ->
|
||||
HistoryListItem(historyItem = historyItem)
|
||||
HistoryListItem(
|
||||
modifier = Modifier.padding(horizontal = 8.dp),
|
||||
historyItem = historyItem)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user