Package-level declarations

Types

Link copied to clipboard
data class Fab(val icon: Icon, val onClick: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
sealed class Icon
Link copied to clipboard
enum ResourcesIcon(val resourceId: Int, val useOriginalColors: Boolean = false) : Enum<ResourcesIcon>

Drawable resources that are either .xml (can be created from an .svg, a vector image) or .png To convert .svg to .xml, you can use Android's Asset Studio But it gave me errors, so I used https://svg2vector.com/ to convert .svg from https://lucide.dev/icons/ to android .xml. All with stroke width 1.5px, size 300px (scaled up by opening the .svg in Gimp and saving it as .png)

Properties

Link copied to clipboard
private val ExtraPadding: Dp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

To handle deprecated icons with the introduction of AutoMirrored

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun DropdownOptions(@StringRes label: Int, preSelectedOption: Int, options: List<String>, onNewOption: (Int) -> Unit, optionLabels: Map<String, String> = emptyMap(), horizontalPadding: Dp = HorizontalPadding)
Link copied to clipboard
Link copied to clipboard
fun ExpandableFAB(listOpenerIcon: Icon, fabs: List<Fab>, initialPosition: FabPosition = FabPosition.TopRight)

A Floating Action Button that opens up or down depending on the screen size and it's position. and stays within the bounds of the screen. It also takes into consideration the IconDefaultSize, BottomNavigationBarHeight and ExtraPadding Preferably, the FABs open downwards. Everything regarding the button offset and it's dragging position must be in pixels (not dp) or it doesn't work since detectDragGestures uses px

Link copied to clipboard
Link copied to clipboard
private fun ExpandableFabs(fabs: List<Fab>, openUpwards: Boolean, isVisible: Boolean)
Link copied to clipboard
fun EzAlertDialog(@StringRes title: Int, @StringRes description: Int, @StringRes confirmText: Int, @StringRes dismissText: Int, confirmClick: () -> Unit, dismissClick: () -> Unit, icon: Icon = Icon.Material(MaterialIcons.Warning))
Link copied to clipboard
Link copied to clipboard
fun EzIcon(icon: ImageVector, size: Dp = IconDefaultSize, padding: Dp = PaddingAroundIcon, onClick: () -> Unit)

Useful when using MaterialIcons, which are ImageVectors. An alternative to IconButton

fun EzIcon(icon: Icon, size: Dp = IconDefaultSize, padding: Dp = PaddingAroundIcon, onClick: () -> Unit)
fun EzIcon(icon: ResourcesIcon, size: Dp = IconDefaultSize, padding: Dp = PaddingAroundIcon, onClick: () -> Unit)
Link copied to clipboard
private fun EzIconWithBorder(icon: ImageVector, onClick: () -> Unit, onDrag: (change: PointerInputChange, dragAmount: Offset) -> Unit? = null)
fun EzIconWithBorder(icon: Icon, onClick: () -> Unit, onDrag: (change: PointerInputChange, dragAmount: Offset) -> Unit? = null)
private fun EzIconWithBorder(icon: ResourcesIcon, onClick: () -> Unit, onDrag: (change: PointerInputChange, dragAmount: Offset) -> Unit? = null)
Link copied to clipboard
Link copied to clipboard
fun EzText(@StringRes text: Int, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, maxLines: Int = Int.MAX_VALUE, textStyle: TextStyle = LocalTextStyle.current, overflow: TextOverflow = TextOverflow.Ellipsis, onTextOverflow: () -> Unit = {})

Because it's tiring to have to write stringResource

Link copied to clipboard
Link copied to clipboard
fun glowText(text: String, blurRadius: Float = 10.0f, color: Color = Color.White): AnnotatedString
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun superGlowText(text: String, modifier: Modifier = Modifier, blurRadius: Float = 20.0f, color: Color = Color.Unspecified, fontWeight: FontWeight? = null, textStyle: TextStyle = LocalTextStyle.current)
Link copied to clipboard