can you show how the context is passed into that class?
if you are in MainActivity use getContext() instead of context
getContext() or getApplicationContext() ?
getContext if you are inside of an Activity
the correct way using viewmodels 😄
@Steven if you want to use my repo as Jetpack Compose example i don't have any problem with that 🙂
so is your problem resolved?
is not mine, i'ts @gyancodes issue
oh god im sorry 🫢
np 🙂
@Der Sarco Thanks for help, but I am still finding the solution,
@Steven Oh I looked into it and It helped to resolve my problem, thanks 🫡
[SOLVED] Facing error while passing context
Recommended threads
- Display an in-app in the user mobile?
Would it be possible to send a message that would display an in-app in the user mobile?
- Project stuck in read-only mode on free ...
Hi Appwrite team! I’m a student using the free plan, and my project (ID: 68e48f780001232ad879) is currently stuck in read-only mode. I can’t create or update ...
- Flutter OAuth2 Google Login – Redirect I...
i tried implementing OAuth2 Google Login in my app, and it works fine for the most part, the problem am facing is when i chose a google account to sign in/up wi...