Skip to content

Commit

Permalink
add scrollstate
Browse files Browse the repository at this point in the history
  • Loading branch information
itsPronay committed Jul 26, 2024
1 parent c273bae commit 596cd7d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
Expand Down Expand Up @@ -238,6 +240,7 @@ fun SavingsAccountTransactionContent(
}
)
val context = LocalContext.current
val scrollState = rememberScrollState()
var showReviewTransactionDialog by rememberSaveable {
mutableStateOf(false)
}
Expand Down Expand Up @@ -325,6 +328,7 @@ fun SavingsAccountTransactionContent(
modifier = Modifier
.fillMaxSize()
.padding(horizontal = 16.dp, vertical = 10.dp)
.verticalScroll(scrollState)
) {
Text(
style = MaterialTheme.typography.bodyLarge,
Expand Down

0 comments on commit 596cd7d

Please sign in to comment.