Skip to content

Commit

Permalink
Moved label above the input field
Browse files Browse the repository at this point in the history
  • Loading branch information
Maik Mursall committed Jun 28, 2022
1 parent 8261b3e commit b464bde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
GROUP=com.fintecsystems
VERSION_NAME=3.5.0
VERSION_NAME=3.5.1
POM_URL=https://github.com/FinTecSystems/xs2a-android
POM_SCM_URL=[email protected]:FinTecSystems/xs2a-android.git
POM_SCM_CONNECTION=scm:git:[email protected]:FinTecSystems/xs2a-android.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ fun FlickerLine(formData: FlickerLineData) {
formData.value = JsonPrimitive(newValue.text)
}

LabelledContainer(formData.label) {
Column(
verticalArrangement = Arrangement.spacedBy(5.dp)
) {
// Flicker container
Column(
verticalArrangement = Arrangement.spacedBy(5.dp)
Expand All @@ -109,7 +111,10 @@ fun FlickerLine(formData: FlickerLineData) {
colors = ButtonDefaults.buttonColors(backgroundColor = XS2ATheme.CURRENT.tintColor),
onClick = {
flickerContainerWidth =
max(flickerContainerMinWidth, flickerContainerWidth - sizeStepSize)
max(
flickerContainerMinWidth,
flickerContainerWidth - sizeStepSize
)
}
) {
Image(
Expand Down Expand Up @@ -187,10 +192,12 @@ fun FlickerLine(formData: FlickerLineData) {
}
}

FormTextField(
value = textFieldValue,
onValueChange = ::onValueChange,
placeholder = formData.placeholder
)
LabelledContainer(formData.label) {
FormTextField(
value = textFieldValue,
onValueChange = ::onValueChange,
placeholder = formData.placeholder
)
}
}
}

0 comments on commit b464bde

Please sign in to comment.