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