Glass Slider

Create a glass slider

Goals

  • Create a glass slider based on the code:

What you will learn

  • Combine multiple backdrops by using the rememberCombinedBackdrop function

Steps

1

Create a GlassSlider

2

Replace line 51 in GlassSlider.kt with

  1. trackBackdrop

  1. backdrop

  1. rememberCombinedBackdrop(backdrop, trackBackdrop)

Background and track are refracted by thumb simultaneously.

Background and track are refracted by thumb simultaneously.

Last updated