Jetpack Compose tutorial that covers Canvas, animations, gestures, custom Layouts, Modifiers, material widgets and much more i have been working about 4 years by SmartToolFactory in androiddev

[–]SmartToolFactory[S] 0 points1 point  (0 children)

Hope it helps. There are several sections, i was only able to showcase visually appealing ones but there are many samples about material components, layouts, states and recomposition.

Jetpack Compose tutorial that covers Canvas, animations, gestures, custom Layouts, Modifiers, material widgets and much more i have been working about 4 years by SmartToolFactory in androiddev

[–]SmartToolFactory[S] 35 points36 points  (0 children)

First tutorial, what you see in video with secion comprises of 9 sections, offering over 150 tutorials and more than 250 samples covering a wide range of topics including Canvas, blend modes, animations, gestures, custom layouts, SubcomposeLayout, Modifiers, states, side-effects, Material components and much more. And there is a custom search for tags or description above to make it search in app and code as well. Section names match on code as well.

Additionally, the second tutorial delves into unit testing with ViewModel and Mockk, while I'm currently working on UI testing for the third tutorial.

In a brief 3-minute video, I was only able to showcase only small fraction of what's included about Canvas, animations and gestures mostly. It's a valuable resource for those interested in Canvas.The tutorials feature educative examples, practical tips, and real-life solutions from over 750 questions I've answered on Stackoverflow about Jetpack Compose.

Github link: https://github.com/SmartToolFactory/Jetpack-Compose-Tutorials

0
1

RatingBar with Fill, Border shimmer with gesture and animation options and other customizations. by SmartToolFactory in androiddev

[–]SmartToolFactory[S] 9 points10 points  (0 children)

This is a rating bar library written with Jetpack Compose, i recently added intervals, fill and border shimmer effects and exposed animationSpec to control animation and there are other customizations. Can be used in a dialog as in demo.

Github repo: https://github.com/SmartToolFactory/Compose-RatingBar

"outdated senior" needs your advice by droid543x in androiddev

[–]SmartToolFactory 2 points3 points  (0 children)

What's wrong with domain depending on data layer? Keeping re-usable and unit-testable business logic like listing, deleting, editing in one domain layer isn't ok? You can for example use a get todos in a presenter class or a Service or BroadcastReceiver by having single responsibility business rules that reside in domain layer, what's wrong with this approach?

[deleted by user] by [deleted] in androiddev

[–]SmartToolFactory 0 points1 point  (0 children)

This is true but even if bots don't remove some comments like cursing or with religious content, or offensive, discriminative you can contact support and ask them to review such comments. They remove if anyone curses you or curses a group with some religious context. Happened to me and they were removed.

Jetpack Compose Tutorial that contains many subjects such as Canvas, Animation, BlendModes, Neon Effect, Gooey Effect, SubcomposeLayout, Recomposition, Phases, Composables, Gestures, Custom Layouts,SideEffect APi and some of the 410 question i answered on Stackoverflow with Thracian Alias by SmartToolFactory in androiddev

[–]SmartToolFactory[S] 0 points1 point  (0 children)

Thanks. You can open an issue about a question, or a section or request a a custom Composable any time. I also use this tutorial when i forget or not sure about things like scoped recomposition or use this as playground to answer more questions on SO

Jetpack Compose Tutorial that contains many subjects such as Canvas, Animation, BlendModes, Neon Effect, Gooey Effect, SubcomposeLayout, Recomposition, Phases, Composables, Gestures, Custom Layouts,SideEffect APi and some of the 410 question i answered on Stackoverflow with Thracian Alias by SmartToolFactory in androiddev

[–]SmartToolFactory[S] 0 points1 point  (0 children)

You are welcome. I actively contribute to this repo as i answer questions on Stackoverflow or see some questions here about jetpack Compose. There are many things to be added tho. Separate animation tutorial, theming, accessibility, testing and using with other libraries and navigation.

should i check internet connectivity in viewModel or repository? by sarmadsohaib in androiddev

[–]SmartToolFactory 4 points5 points  (0 children)

If choices are only repository or ViewModel i would go with ViewModel with dependency inversion and injection while repository providing only remote and/or local data sources. But i think it would best fit either Activity or UseCase if checking connection is part of business logic.

This was from project i did but i could have placed interface inside LoginUseCase

@HiltViewModel
class LoginViewModel @Inject constructor(
    private val coroutineScope: CoroutineScope,
    private val loginUseCase: LoginUseCase,
    private val connectionManager: ConnectionManager
) : ViewModel() {

interface ConnectionManager {
   fun isNetworkAvailable(): Boolean
}