Virat Shukla

Results 13 comments of Virat Shukla

Yes, please make it null safe

@nikhilbansal97 Good, then you can create a PR. Also include Room DB to cache the response. Current Code is not storing json response.

In order to launch an activity from your phone's default launcher, you need to have following lines of code in one of your activity. Only then it will be listed...

I fixed it by putting my Pagination widget in ConstrainedBox. So its like - SingleChildScrollView ( Column ( Widget1(), ConstraintBox (Pagination())),) It has temporarily fixed the problem. For now, I...

Please find sample code snippets. MainActivity.kt file content ---------------------------- @Composable fun UseReflection() { val packageName = "com.example.composeplayground.dsLibrary.MyComposeWidgets" val functionName = "Widget1" val c = Class.forName("${packageName}Kt") c.declaredMethods.forEach { method -> if...

File 2 MyComposeWidgets.kt content package com.example.composeplayground.dsLibrary import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color val paramList1 = arrayListOf() @Composable fun Widget1() { Text("Some Random Text - Widget 1") } val paramList2 =...

If I comment-out Widget2 method, then reflection works great, but if its not commented, then reflection fails. Similar issue happens, If I pass dp as parameter in a composable function.

@akurasov I need to generate some generic code, so that on runtime, I can show correct UI based on response. Yes, I am aware, that on compile time, currentComposer and...

Although, there is a workaround, that if I wrap this Color param with my data class, it works fine. But question is, why this androidx.compose.ui.graphics.Color and androidx.compose.ui.unit.Dp are not working...