joney
11/06/2020, 3:26 PM@Composable
s in a kotlin multiplatform library-module and (re-)use those in android app-modules of the same project?
I get these errors when building the project:
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'remember' into
@androidx.compose.runtime.Composable public fun [...]
David Attias
11/06/2020, 4:15 PMnrobi
11/06/2020, 6:32 PMSwipeToRefresh()
from JetNews with LazyColumnFor
, more specifically doesn’t detect the swipe (just like I wouldn’t have the SwipeToRefresh component). I’m guessing it’s because the swipeable()
setup conflicts somehow with the LazyColumnFor
. Any ideas where should I look for?Nraghuramireddy
11/06/2020, 7:55 PMlen
11/06/2020, 9:17 PMJoost Klitsie
11/06/2020, 9:18 PM\u0000
is inserted and the keyboard switches right away to lowercase characters. Is there already a bug for this?Vsevolod Ganin
11/07/2020, 1:00 AMRadialGradient
is not working properly as of alpha06. I want to draw a simple circle that have white color from center to 0.5 * radius
and then have a uniform blend from white to black from 0.5 * radius
to radius
. What I did is
Canvas(modifier = Modifier.fillMaxSize()) {
drawCircle(
brush = RadialGradient(
0.0f to Color.White,
0.5f to Color.White,
1.0f to Color.Black,
centerX = center.x,
centerY = center.y,
radius = size.width
)
)
}
This code displays the whole circle in white.Luis Daivid
11/07/2020, 5:00 AMKshitij Patil
11/07/2020, 8:53 AMwidthDp
accordingly with showDecoration=true
but still the view looks like a portrait mode onlygsala
11/07/2020, 11:22 AMParcelable
arguments or is it only uri-based arguments that can be parse to primitive types?Kshitij Patil
11/07/2020, 11:42 AMvectorResource()
messes up with the fill color of vector drawable based on the current theme (dark theme inverts the color). I tried using same vector drawable in a non-compose project and colors remained the same.Kshitij Patil
11/07/2020, 2:03 PMzoha131
11/07/2020, 7:04 PMjava.lang.NoSuchMethodError: No virtual method setContent(Lkotlin/jvm/functions/Function0;)V in class Landroidx/compose/ui/platform/ComposeView; or its super classes (declaration of 'androidx.compose.ui.platform.ComposeView' appears in /data/app/bd.com.qualityfoods.app-LVPKnecUB1gsJPhJDkqZfA==/base.apk)
at com.conceptgang.app.page.home.HomeFragment.onCreateView(HomeFragment.kt:76)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2898)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:527)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1324)
at androidx.fragment.app.FragmentManager.addAddedFragments(FragmentManager.java:2392)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2137)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2061)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:496)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6826)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
Siyamed
11/07/2020, 7:12 PMaperfilyev
11/07/2020, 7:40 PMLazyColumnFor
? Each requestItem
is a network call that gets executed when I scroll back and forth.redrield
11/08/2020, 5:59 AMKshitij Patil
11/08/2020, 6:44 AMBackdropScaffold
? I am trying to build a horizontal backdrop and was looking for some reference projectVivek Sharma
11/08/2020, 10:35 AMnitrog42
11/08/2020, 12:08 PMSrSouza
11/08/2020, 4:56 PMMehdi Haghgoo
11/08/2020, 8:46 PMNavHost(navController, startDestination = "home"){
composable("new-item"){NewItem(navController)}
composable("profile/{name}", listOf(navArgument("name"){type = NavType.StringType}))
{navBackStackEntry ->
Profile(navBackStackEntry.arguments?.getString("name").toString())
}
composable("home?costName={costName}&costValue={costValue}",
arguments = listOf(navArgument("costName"){nullable = true}, navArgument("costValue"){type = NavType.IntType; defaultValue = 0})){
navBackStackEntry -> Home(navController, navBackStackEntry.arguments?.getString("costName"), navBackStackEntry.arguments?.getInt("costValue"))
}
}
// java.lang.IllegalArgumentException: navigation destination 150924488 is not a direct child of this NavGraph
// at androidx.navigation.NavGraphNavigator.navigate(NavGraphNavigator.java:66)
Chethan
11/09/2020, 9:51 AMColumn(
modifier = Modifier.padding(start = 10.dp)
) {
Spacer(modifier = Modifier.fillMaxHeight(0.5F).fillMaxWidth())
Text(
text = "Provider name",
style = TextStyle(
color = Color.White,
fontSize = 14.sp,
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
)
)
Text(
text = "Provider Address",
style = TextStyle(
color = Color.White,
fontSize = 11.sp,
textAlign = TextAlign.Center
)
)
// setRatingBar()
}
I want to start “Provider name” from vertical centerharry248
11/09/2020, 9:55 AMVivek Sharma
11/09/2020, 10:26 AMalorma
11/09/2020, 11:27 AMStefano Rodriguez
11/09/2020, 11:30 AMBox
(with .drawLayer
modifier) the input events are not properly transformed and looks like the button events are triggered by touch events on their original (not transformed) position. Is this something expected or a bug?Marco Gomiero
11/09/2020, 11:54 AMLuis Daivid
11/09/2020, 1:02 PMJózsef Szilvási
11/09/2020, 2:17 PMModalBottomSheetLayout
which contains a TextInput
, and when it gets focus the keyboard appears above the sheet (z-index style) -> the sheet doesn't slide up to the top of the keyboard. Is there any way to fix this?Tony Mykhaylovsky
11/09/2020, 2:41 PMTony Mykhaylovsky
11/09/2020, 2:41 PMGabriel
11/09/2020, 2:45 PMTony Mykhaylovsky
11/09/2020, 2:49 PMGabriel
11/09/2020, 2:49 PMTony Mykhaylovsky
11/09/2020, 2:50 PM