https://kotlinlang.org logo
#compose
Title
# compose
i

iona bartishvili

01/25/2022, 7:35 AM
Hey, everyone. i have a question regarding the Snackbar in androidx.compose.material. i have an action text which shows up at the start of the snackbar view. Instead, i want this text to show up at the end of the snackbar view. can enyone tell me what i am missing ?
n

Nicole Brooks

01/25/2022, 3:21 PM
Is all that blue your snackbar? It should just be a bar across the preview, not the whole page. Maybe something you have it wrapped in is changing the appearance -- I just copied this over to test and the action text floated to the right as expected without any alignment property whatsoever.
i

iona bartishvili

01/25/2022, 3:24 PM
yes, but it is visualised here perfectly which is the same arrangement in the emulator. in preview, action text just floats to the right side. 😐
4 Views