📅 Minimal Calendar

This calendar library is built with jetpack compose. Easy, simple, and minimal.

API GitHub Repo stars

Latest version

Compose Accompanist Library
1.1.x 0.23.1
1.2.x 0.24.6-alpha

Setup

Step.1

Java 8+ API desugaring support (Android Gradle Plugin 4.0.0+). Include the following in your app module’s build.gradle(app) file:

android {
    ....
    compileOptions {
        coreLibraryDesugaringEnabled true
    }
}

dependencies {
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:<latest-version>'
}

See here for the <latest-version>

Step.2

Add it in your setting.gradle:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        ....
        maven { url "https://jitpack.io" }
    }
}

Step.3

Add the dependency your build.gradle(app):

dependencies {
    implementation 'com.github.memeze:minimal-calendar:<latest-version>'
}

See here for the <latest-version>

Usage

fun MinimalCalendar(
    modifier: Modifier = Modifier,
    initDate: LocalDate = LocalDate.now(),
    calendarType: CalendarType = CalendarType.MONTH,
    calendarColors: MinimalCalendarColors = MinimalCalendarTheme.colors(),
    calendarConfig: MinimalCalendarConfig = MinimalCalendarConfig()
)

GitHub

View Github