
Offers adaptive UI components for writing once and running on Android and iOS, ensuring platform-specific look and feel with components like progress indicators, dialogs, and sliders.
KAdmob is available on mavenCentral().
Add dependency to your build.gradle.kts:
implementation("io.github.the-best-is-best:kadaptiveui:1.2.0")AdaptiveCircularProgressIndicator()AdaptiveTile(
title = "Settings",
subtitle = "Manage preferences",
leadingIcon = adaptiveIcon,
trailingIcon = adaptiveIcon,
onClick = {}
)AdaptiveAppBar(
title = "Home",
actions = listOf(
AdaptiveActionItem("Search", adaptiveIcon) { /* onClick */ }
)
)AdaptiveBottomNavBar(
items = listOf(
AdaptiveBottomNavItem("Home", adaptiveIcon, true),
AdaptiveBottomNavItem("Profile", adaptiveIcon, false)
),
onItemSelected = { /* index */ }
)AdaptiveBottomSheet(
state = rememberAdaptiveSheetState(),
content = { Text("Sheet content") }
)AdaptiveDatePicker(
state = rememberAdaptiveDatePickerState(),
onDateSelected = { date -> }
)AdaptiveDialog(
onDismissRequest = { },
title = "Confirm",
text = "Are you sure?",
confirmButtonText = "OK",
dismissButtonText = "Cancel",
onConfirm = { }
)AdaptiveIconButton(
onClick = {},
adaptiveIcons = adaptiveIcon
)AdaptiveSlider(
value = 0.5f,
onValueChange = { }
)AdaptiveTextButton(
text = "Continue",
onClick = { }
)AdaptiveTimePicker(
state = rememberAdaptiveTimePickerState(),
onTimeSelected = { time -> }
)AdaptiveSwitch(
checked = true,
onCheckedChange = { }
)MIT License
KAdmob is available on mavenCentral().
Add dependency to your build.gradle.kts:
implementation("io.github.the-best-is-best:kadaptiveui:1.2.0")AdaptiveCircularProgressIndicator()AdaptiveTile(
title = "Settings",
subtitle = "Manage preferences",
leadingIcon = adaptiveIcon,
trailingIcon = adaptiveIcon,
onClick = {}
)AdaptiveAppBar(
title = "Home",
actions = listOf(
AdaptiveActionItem("Search", adaptiveIcon) { /* onClick */ }
)
)AdaptiveBottomNavBar(
items = listOf(
AdaptiveBottomNavItem("Home", adaptiveIcon, true),
AdaptiveBottomNavItem("Profile", adaptiveIcon, false)
),
onItemSelected = { /* index */ }
)AdaptiveBottomSheet(
state = rememberAdaptiveSheetState(),
content = { Text("Sheet content") }
)AdaptiveDatePicker(
state = rememberAdaptiveDatePickerState(),
onDateSelected = { date -> }
)AdaptiveDialog(
onDismissRequest = { },
title = "Confirm",
text = "Are you sure?",
confirmButtonText = "OK",
dismissButtonText = "Cancel",
onConfirm = { }
)AdaptiveIconButton(
onClick = {},
adaptiveIcons = adaptiveIcon
)AdaptiveSlider(
value = 0.5f,
onValueChange = { }
)AdaptiveTextButton(
text = "Continue",
onClick = { }
)AdaptiveTimePicker(
state = rememberAdaptiveTimePickerState(),
onTimeSelected = { time -> }
)AdaptiveSwitch(
checked = true,
onCheckedChange = { }
)MIT License