Skip to content

Commit

Permalink
update: [ANDROAPP-4826] code formated, infobar added
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAparicioAlbaAsenjo committed Feb 12, 2024
1 parent ca6a6a0 commit 3b95666
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions form/src/main/java/org/dhis2/form/ui/Form.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ fun Form(
if (sections.isNotEmpty()) {
val focusNext = remember { mutableStateOf(false) }
LazyColumn(
modifier = Modifier
.fillMaxSize()
.background(Color.White)
.clickable(
interactionSource = MutableInteractionSource(),
indication = null,
onClick = { focusManager.clearFocus() },
),
contentPadding = PaddingValues(horizontal = 16.dp, vertical = 16.dp),
state = scrollState,
) {
modifier = Modifier
.fillMaxSize()
.background(Color.White)
.clickable(
interactionSource = MutableInteractionSource(),
indication = null,
onClick = { focusManager.clearFocus() },
),
contentPadding = PaddingValues(horizontal = 16.dp, vertical = 16.dp),
state = scrollState,
) {
this.itemsIndexed(
items = sections,
key = { _, fieldUiModel -> fieldUiModel.uid },
Expand Down Expand Up @@ -220,7 +220,6 @@ private fun LaunchIfTrue(key: Boolean, block: suspend CoroutineScope.() -> Unit)

}


private fun getNextSection(section: FormSection, sections: List<FormSection>): FormSection? {
val currentIndex = sections.indexOf(section)
if (currentIndex != -1 && currentIndex < sections.size - 1) {
Expand Down

0 comments on commit 3b95666

Please sign in to comment.