๐๐งจ๐ Series of Tutorials to learn about Jetpack Compose with subjects Material Widgets, Layout, SubcomposeLayout, custom layouts, State, custom rememberable, recomposition, LaunchedEffect, side-effects, Gesture, Animation, Navigation, Canvas, UIs like whatsapp and others.
Preview crashes since we are trying to trigger a toast. Added a check to show Toast only if Composable is not in Preview.
Added an initial implementation to show "Preview Toast" which would behave the same as Android Toast but it will only be available in Previews. (Stays on the screen for 3 seconds and then goes away, a simple Text() for now).
Text()
for now).https://github.com/SmartToolFactory/Jetpack-Compose-Tutorials/assets/43310446/2bb776fc-1311-4b6c-b20d-faa11693d555
I'll look into a solution where we don't have to use this implementation manually every time.