image.png

This page contains the official documentation of Droidcore.


List of components

No Name Desc
1 NeoTextField A simplified textfield that only require value. The onChanged value is handled on background automatically.
2 PasswordTextField Inheriting from NeoTextField, this textfield includes password view and hide/unhide password.
3 ButtonCard A Card with Button.
4 Pocket A Container View of two stacked cards.
5 NeoAlert Just your regular Alert, simplified.
6 CarouselCard A simple Carousel.

Legacy


Untitled

NeoTextField

val textFieldValue by remember { mutableStateOf("") }

NeoTextField(value = textFieldValue)

More Details:

NeoTextField


Untitled

Untitled

Untitled

PasswordTextField Inheriting from NeoTextField, this textfield includes password view and hide/unhide password.

val passwordState by remember { mutableStateOf("") }

PasswordTextField(
    value = passwordState,
    placeHolder = "password" //This field is optional
)

Untitled

ButtonCard

ButtonCard(desc = "This is ButtonCard") { /*Enter Button action*/ }

Pocket

Untitled

Pocket(
		title = "Pocket Title",
		titleBody = "Body Title"
) {
		Text("Body Content")
}

Since all fields are nullable, alternatively you can call it like this (while the usecase is limited):

Untitled