Home

Awesome

<h1 align="center">

ModalSheet

</h1> <p align="center"> <img alt="API" src="https://img.shields.io/badge/Api%2021+-50f270?logo=android&logoColor=black&style=for-the-badge"/></a> <img alt="Kotlin" src="https://img.shields.io/badge/Kotlin-a503fc?logo=kotlin&logoColor=white&style=for-the-badge"/></a> <img alt="Jetpack Compose" src="https://img.shields.io/static/v1?style=for-the-badge&message=Jetpack+Compose&color=4285F4&logo=Jetpack+Compose&logoColor=FFFFFF&label="/></a> <img alt="material" src="https://custom-icon-badges.demolab.com/badge/material%20you-lightblue?style=for-the-badge&logoColor=333&logo=material-you"/></a> <a href="https://hits.sh/github.com/t8rin/modalsheet/"><img alt="Hits" src="https://hits.sh/github.com/t8rin/modalsheet.svg?style=for-the-badge&label=Views&extraCount=10&color=54856b"/></a> </p> <div align="center">

Simple customizable Material3 Modal Bottom Sheet that doesn't have issues with insets</br> Package also includes SwipeableV2 and ModalSheetLayout implementation

</div>

Usage

1. Add dependencies

latestVersion

Kotlin (kts)

repositories {
  maven { setUrl("https://jitpack.io") } // Add jitpack
}
dependencies {
  implementation("com.t8rin.modalsheet:modalsheet:LATEST_VERSION") // Replace "LATEST_VERSION" with preferrend version tag
}

Groovy

repositories {
  maven { url 'https://jitpack.io' } // Add jitpack
}
dependencies {
  implementation 'com.t8rin.modalsheet:modalsheet:LATEST_VERSION' // Replace "LATEST_VERSION" with preferrend version tag
}

2. Add ModalSheet call

@Composable
fun ModalSheetExample() {
   
   var showSheet by remember { mutableStateOf(false) } 
   
   ModalSheet(
       visible = showSheet,
       onVisibleChange = { showSheet = it }
   ) {
      // Your sheet content
   }
    

Find this repository useful? :heart:

Support it by joining stargazers for this repository. :star: <br> And follow me for my next creations! 🤩

License

Designed and developed by 2023 T8RIN

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.