0

What i want

There is a bottom sheet in the settings default app, in this bottom sheet there is a certain area with a button that changes the background when it comes into contact with content such as a NavigationBar or a TabView. How can this be implemented?

I tried putting a button in toolbar on the bottom bar, it worked fine and close to what I wanted, but the area is too small. I also tried .safeAreaInset with .bottomBar placement , but how to make the background change from what is above the content and disappear when there is no content below it like in video .

ThePyzhov
  • 259
  • 2
  • 14
mojo3325
  • 1
  • 2

1 Answers1

0

It sounds like you are looking for a way to make the background opaque or blur it.

The answers to this related question (the Opaque approach) may help you or you can try the answers for this question on how to Blur the background.

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • Thanks for your answer, but that's not exactly what I'm looking for. I do not need a static blur background, I need a dynamic background that changes as I described above – mojo3325 Dec 16 '22 at 12:48