Awesome
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"
<br />
<p>
<img src="https://user-images.githubusercontent.com/67064997/128343506-6b5ae70e-f3f4-4d3c-917f-cc6342a07f1f.png" width="30%" />
<img src="https://user-images.githubusercontent.com/67064997/128351895-ab210e56-ae71-44d8-ad76-44740ef43c4a.png" width="30%" />
</p>