Colton Idle
03/29/2021, 10:48 AMcomposables-common
I already created this module in Android Studio as a new android library module. Now I want to create a new module in the same project that is a compose desktop module and have it depend on composables-common
Two questions:
1. Is making my composables-common module supposed to be a com.android.library
module?
2. Does anyone see any issue with my "proposed" setup? Existing android app module. Create new composables-common android library module. Set this composables-common as a dependency in my existing app module. Create new compose desktop app plain ol java module. Depend on composables-common dependency in the desktop module. Working on Android? Open the project in AS and choose android app module to launch. Working on desktop? Open the project in IJ and choose desktop app module to launch.
I have seen the sample projects showing desktop and android app in a single repo, but I guess I'm more stuck on how to do it for an already existing project. Thank you!PHondogo
03/29/2021, 1:46 PMYan Pujante
03/29/2021, 4:54 PM@Composable
fun EditPartUI(part: Part, onDismiss: () -> Unit) { /* */ }
@Composable
fun PartXX() {
var pendingPartCreate by remember { mutableStateOf<Part?>(null) }
if(pendingPartCreate == null) {
ScrollableTab(
onFabAction = { pendingPartCreate = Part() }) {
// ....
}
} else {
EditPartUI(pendingPartCreate!!, onDismiss = { pendingPartCreate = null} )
}
}
The else
branch does not compile unless I use pendingPartCreate!!
(smart cast does not work). So is the compiler not smart enough to detect the fact that it cannot change? Or is the compiler rightfully wants to prevent me from shooting myself in the foot?TheMrCodes
03/29/2021, 8:09 PMromainbsl
03/30/2021, 1:36 PM1.5.0-M2
? If not, do you plan to or should we be waiting for 1.5.0
?theapache64
03/30/2021, 2:29 PM0.4.0-build178
? animateFloatAsState
doesn't seem to work anymore. 🤔 🧵spierce7
03/30/2021, 5:13 PMtheapache64
03/30/2021, 5:25 PMMichael Pardo
03/31/2021, 1:19 PMMichael Pardo
03/31/2021, 4:04 PMMichael Pardo
04/01/2021, 4:23 AMTheMrCodes
04/01/2021, 9:31 AMSteve
04/01/2021, 12:10 PMChris Sinco [G]
04/01/2021, 4:58 PMbeta01
in 0.3.0
?orangy
04/01/2021, 10:34 PMColton Idle
04/02/2021, 4:11 AMKirill Grouchnikov
04/02/2021, 5:05 AMv79
04/02/2021, 7:56 AMtheapache64
04/02/2021, 10:00 AMThis version (1.0.0-alpha13) of the Compose Compiler requires Kotlin version 1.4.31 but you appear to be using Kotlin version 1.4.32so we need to downgrade the kotlin version ? 🙄
v79
04/02/2021, 11:35 AMVirus00x
04/02/2021, 3:59 PMTimo Drick
04/02/2021, 6:11 PMYofou
04/02/2021, 11:43 PMdecompose
for my navigation and to decouple my logic from my UI, however I'm little bit stumpped on this one problem, two pages I have need to share same state and I'm struggling to figure out how to pass it down to both of them, the closest I got was to put it in my NavComponent class and try to pass it down through the child render
functions, I reckon if i tinckered abit more, I could maybe of got it too work, however this was getting really ugly and hard to maintain which makes me feel like I'm doing it wrong, so I reverted the changes back and I'm now asking for any examples or further advice on how to aproach something like this with decompose
CLOVIS
04/03/2021, 4:10 PMsuppressKotlinVersionCompatibilityCheck
but don't say I didn't warn you!).`Aaron Yoder
04/04/2021, 2:07 AMModifier.combinedClickable().indication()
on a Box
, and having a hard time figuring out how to just set the indication to null. As I understand it, I should just be able to set indication = null
, but when I do .indication(indication = null)
it complains about no value passed for interactionSource
. Not really sure what I should pass there. There was this workaround I found from a few weeks ago (interactionSource = remember { MutableInteractionSource() }, indication = null
) but that doesn't seem to have any effect, the indication is still there.Deklan Webster
04/04/2021, 2:21 PMIs compose-desktop feasible for desktop-only apps? Or am always going to be constrained by its mobile-centric roots? I'm needing tooltips, file pickers, font pickers, that sort of thing...If someone is interested in building primarily a desktop app (maybe a mobile app port someday), how do Flutter and Compose-desktop compare for that purpose? (I know there are probably many Flutter vs Compose questions but, sorry, it's very confusing as an outside observer)
v79
04/05/2021, 4:17 PMgpaligot
04/06/2021, 2:37 PMorangy
04/06/2021, 6:21 PMHyia
04/07/2021, 12:22 AMby mutableStateOf
Hyia
04/07/2021, 12:22 AMby mutableStateOf
Colton Idle
04/07/2021, 12:23 AMHyia
04/07/2021, 12:25 AMColton Idle
04/07/2021, 12:25 AM