Skip to content

Instantly share code, notes, and snippets.

View racka98's full-sized avatar
🏠
Working from home

rackadev racka98

🏠
Working from home
View GitHub Profile
@racka98
racka98 / ModalBottomSheet.kt
Created December 5, 2022 07:25 — forked from LouisCAD/ModalBottomSheet.kt
Put this in its own Gradle module to have ModalBottomSheet in Material3 (or even without Material Design at all).
package com.louiscad.splitties.eap.bottomsheet
import android.app.Activity
import android.view.ViewGroup
import androidx.activity.compose.BackHandler
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue