material2 - iZakirSheikh/toolkit GitHub Wiki
Build Jetpack Compose UIs with ready to use extended/Missing Material Design Components.
This library provides some extended or missing Material Design Components for Compose, such
as Bottom Sheets
, PopUp's
, ListTile
, 'Button2', 'CollapsableAppBar' and more. This is the
higher level
entry point of Compose, designed to provide simplified components for use in your UI.
Component | APIs | Description |
---|---|---|
AppBar | LargeAppBar | M2 large top app bar equalivalent to same in M3 |
TopAppBar | M2 small top app bar equalivalent to same in M3 | |
CollapsableTobBarLayout | M2 actual collapsable topbar Layout |
To use Material2 ktx, you need to add the dependency to your project. Here are the steps to do that:
- Add the JitPack repository to your root build.gradle file
kdependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
// Add this to the root level gradle.
maven { url 'https://jitpack.io' }
}
}
- Add the Toolkit dependency to your app module build.gradle file
dependencies {
implementation 'com.github.prime-zs.toolkit:material2:$version'
}