rawhasan / compose-exercise-lazy-column-sync

Exercise project to sync list on a LazyColumn after adding and deleting items.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compose Exercise: LazyColumn Sync

  • Sync list on a LazyColumn after adding and deleting items.

  • Using TopAppBar, Button with an icon, built-in icons.

  • Filling up the whole remaining space by an UI element.

  • Hiding keyboard on enter press and on button click.

  • Case insensitive check for a word on a list.

  • Make a word sentence case.

  • Allow entering only letters on the TextField.

  • TopAppBar icon change on click (ascending/descending order).

  • Delete items from LazyColumn on click.

  • Show leading icon on TextField.

  • Show trailing icon on TextField based on error.

  • Show separate error message with TextField based on error.

  • FIXME: Strange sorting bug. Keeps the new words separate while sorting.

Dependencies

// Compose ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07"

// Compose LiveData (StackOverflow)
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"

About

Exercise project to sync list on a LazyColumn after adding and deleting items.


Languages

Language:Kotlin 100.0%