NepaliDatePickerDefaults
Properties
Link copied to clipboard
A default NepaliSelectableDates that allows all dates to be selected.
Link copied to clipboard
Link copied to clipboard
A default NepaliDateLocale.
Link copied to clipboard
I will suggest as below considering user's screen width and clarity.
Link copied to clipboard
The default first day of the week.
Link copied to clipboard
The default shape for date picker dialogs.
Link copied to clipboard
The default tonal elevation used for date picker dialog.
Functions
Link copied to clipboard
fun colors(containerColor: Color = Color.Unspecified, titleContentColor: Color = Color.Unspecified, headlineContentColor: Color = Color.Unspecified, weekdayContentColor: Color = Color.Unspecified, subheadContentColor: Color = Color.Unspecified, navigationContentColor: Color = Color.Unspecified, yearContentColor: Color = Color.Unspecified, disabledYearContentColor: Color = Color.Unspecified, currentYearContentColor: Color = Color.Unspecified, selectedYearContentColor: Color = Color.Unspecified, disabledSelectedYearContentColor: Color = Color.Unspecified, selectedYearContainerColor: Color = Color.Unspecified, disabledSelectedYearContainerColor: Color = Color.Unspecified, dayContentColor: Color = Color.Unspecified, disabledDayContentColor: Color = Color.Unspecified, selectedDayContentColor: Color = Color.Unspecified, disabledSelectedDayContentColor: Color = Color.Unspecified, selectedDayContainerColor: Color = Color.Unspecified, disabledSelectedDayContainerColor: Color = Color.Unspecified, todayContentColor: Color = Color.Unspecified, todayDateBorderColor: Color = Color.Unspecified, dayInSelectionRangeContentColor: Color = Color.Unspecified, dayInSelectionRangeContainerColor: Color = Color.Unspecified, dividerColor: Color = Color.Unspecified, dateTextFieldColors: TextFieldColors? = null): NepaliDatePickerColors
Creates a NepaliDatePickerColors that will potentially animate between the provided colors according to the Material specification.
Link copied to clipboard
fun DialogButton(text: String, onButtonClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true)
A default button to for Nepali date picker dialog. i.e., "Cancel", "OK"
Link copied to clipboard
fun NepaliDateRangePickerHeadlineWithEnglishDate(selectedNepaliStartDate: CustomCalendar?, selectedNepaliEndDate: CustomCalendar?, selectedEnglishStartDate: CustomCalendar?, selectedEnglishEndDate: CustomCalendar?, locale: NepaliDateLocale, englishLocale: NepaliDateLocale, modifier: Modifier = Modifier, isEnglishDateAligned: Boolean = false)
A Default Headline provider for NepaliDateRangePickerWithEnglish