I HATE THIS THING SO MUCH, WHY IS THIS SUPPOSEDLY ...
# compose
r
I HATE THIS THING SO MUCH, WHY IS THIS SUPPOSEDLY SIMPLE SHIT SO HARD I JUST WANT THE SEARCH BAR, THEY SAY IT EXISTS, BUT ITS RED IN ANDROID STUDIO
t
You're not really helping us help you. If you have an issue and want help (calmly) state what you're trying to do, the issue, what error messages you are getting, etc. Then people can actually help you. Just being unnecessarily angry is not really helpful. Anyways: maybe you're missing a dependency? Haven't done a Gradle Sync since adding a dependency?
πŸ‘ 2
βž• 13
r
image.png
everything else is working fine, with material 3 but not the search bar
t
Which Version of the material3 library are you using?
r
its a lot of funcs but 1.4.3?
t
There is no version 1.4.3 yet for the
androidx.compose.material3
dependency πŸ˜…
According to Composables the
SearchBar
composable was added in Version 1.2.0-alpha01 of the material3 dependency, so you'd need to switch to an alpha version above that, the most recent being alpha06, as can be seen on the official releases page
r
OK so you might wanna check this out
Copy code
implementation(compose.material3)
Copy code
val org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.`compose`: org.jetbrains.compose.ComposePlugin.Dependencies get() =
    (this as org.gradle.api.plugins.ExtensionAware).extensions.getByName("compose") as org.jetbrains.compose.ComposePlugin.Dependencies
Copy code
val material3 get() = composeDependency("org.jetbrains.compose.material3:material3")
Copy code
internal val composeVersion get() = ComposeBuildConfig.composeVersion
Copy code
const val composeVersion = "1.4.3"
im having a hard time following the calls
i added
Copy code
implementation("androidx.compose.material3:1.2.0-alpha06")
and it does nnot work
WHY THE FUCK DOES THIS FRAMWORK NOT EVEN FUCKING IMPORT
s
I am guessing you are using Compose Multiplatform. If that's the case that widget is not available as common source at the moment as you can see here in the docs. https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#SearchBar(kotlin.String,kot[…]tionSource,kotlin.Function1)
πŸ‘€ 1
πŸ‘ 1
πŸ’― 1
gratitude thank you 1
j
Honestly I wonder why people even try to help you given your attitude...
☝️ 19
☝🏾 1
βž• 20
☝🏻 1
r
Because they care about the small weirdo who has spent hours finding nothing
@sasikanth what you are saying seems to be correct, i think the problem is, as always, ... crapple. The ios compilation has no idea what this compoenent is while apparently android and desktop do. My idea is to import it in the application layer and then expect a composable for it. I cant figur out how to disable crapple compiling so the only other option is steal from source... idk if you have another solution?
v
I do find that compose (and Jetbrains) can sometimes be too clever, with too many levels of indirection. It took me a couple of days to find out what version of compose KMP I was using, because rather than being explicit in the
implementation()
call, I had to follow several function calls down as the OP shows.
r
these guys are so painful. Its like they just give you every reason to not like them even though all you wanna do is love them. I, I, I only love, love you when you don't love me So, why do you, why do you, why do you love me?
a
I'm glad some people are helping you, but this is all so unnecessarily angry & weird
πŸ‘Œ 17
r
i am a different yes... (its also like 1 AM so grouchy at nite)
a
Hi @Rohan Sampat (Rom4ster) your slack name and handle violates our community guidelines as they contain non friendly words. Please do change your name to abide fully to the community guidelines
πŸ‘ 3
s
If the challenges you face with IDEA & Compose elicit such strong anger, I would strongly recommend against venturing into XCode & SwiftUI. The potential stress might just give you a heart attack! πŸ˜„
πŸ˜‚ 11
πŸ’― 5
h
@Rohan Sampat (Rom4ster) please change your username and be respectful on this Slack, as per the code of conduct. Otherwise you will be banned. Thank you.
r
Calm down i was asleep jeez, fine ill change it
there no swears
s
You're aware, there's no requirement to utilize Compose. You have the freedom to opt for Flutter. πŸ˜„
πŸ˜‚ 1
r
@Stefan Oltmann lol crapple crap is so bad that it even messes with my shit even without me using it ... i was gonna do flutter but aint learning a new lang for this
h
@Rohan Sampat (Rom4ster) once again, please change your tone and your handle.
r
Hi @hhariri do you have a link to naming guidelines so i can make sure its all good?
h
It's the code of conduct you accepted when joining. But it's quite simple. Words that designate hate, such as your current one, aren't welcome. Nor your swearing or your condescending tone
πŸ‘ 1
r
Oh. ithought that meant hate speech and what not, i did not know it applied to the literal word "hate"
gimme a sec to change
s
If you dislike Compose, go with Flutter or something else. You are not forced to use it. I don't get behind what your mission is.
r
flutter requires learning dart... so its worse
a
I assume by now you believe that you have been so clever πŸ˜€. While everyone in here knows how immature you have been throughout this thread
πŸ‘ 1
Please, change your handle to a tag (or name) that can easily identify who you are. Not sentences ripped of spaces. Handles are not meant to convey perspectives or personal orientation towards a certain aspect, but simply to identify without friction
s
If you don't like Compose you are free to use the old Android View system. Who forces you to use Compose? Not me. Maybe direct your anger in that direction.
r
please can i have this one?
πŸ™„ 2
i know its a bit cheeky but it works right?
@Stefan Oltmann if u want me to not use compose, suggest something better not WORSE.... look i'd eat half a bannana over rotting mold
s
I don't think there is a better UI system than Compose ❀️
πŸ‘ 1
But as always you have to choose your poison. πŸ˜‰
r
ye i ❀️ kotlin and honestly it works well when it works...
but just like other kotlin shit, its so hard to deal with the outdatd materials and alphas and just so much random crap
s
As far as I understand it's not even Compose you are angry about, but problems with IDEA / Android Studio
r
oh no, it is compose for sure. The compoenent i want is not in the framework yet
specifically compose multiplat that is the problem, as they created a very difficult to use import system that MASKS version numbers
s
One positive way to use your energy would be to work on a PR to make that component available in
commonMain
.
r
sadly cant, idk how to do IOS anything
s
For Ashampoo Photos I needed to do the same in the past as the view pager was only available for Android, but could very easy be ported to be used in Compose for Desktop.
sadly cant, idk how to do IOS anything
Go learn it. Use all your energy and invest that into something productive.
r
Desktop and android both will work fine for the search bar, its just the IOS that wont build... im gonna make expect substitutions, or rip the source
s
I'm uncertain whether you're working solely on a personal project or a commercial endeavor. However, if I were to discover that my colleagues were dedicating company time to engaging in forum rants instead of focusing on finding solutions, it would certainly warrant a discussion. πŸ˜‰
r
I literally dont have a personal mac, im not gonna switch over to a machine thats for work for my personal IP... just cuz crapple is an asshole
this is a personal project for sure, its a single dev effort, but i want to keep it off work machine for polciy reasons
s
I literally dont have a personal mac
You should get yourself a MacBook Air with Apple Silicon. They are very good. ❀️
I don't like Apple, too. But M1 is worth buying. πŸ™‚
r
no they are garbage pieces of shit that cant be upgraded or repaired and lack windows compat....
Now i will not deny, that M1s are GREAT computers, but i cant justify that when i can get a framework for the same price and have it last longer and upgrade with me
just to show im not a pure hater, i actually recommend m1s to many people because of how greatthey are, they r just not for me...
j
just to show im not a pure hater
πŸ˜‚ πŸ˜‚ I guess that boat has sailed!
πŸ˜‚ 4
s
They can't be upgraded due to technical reasons. You get a benefit for that. Windows can run. Search for Windows 11 on ARM using Parallels.
r
thats no good, parallels wont work and windows for arm does horrible with games
there is no reason i should not be able to upgrade the hard drive, or the main board ... look at what framework is doing and how cool it is
s
windows for arm does horrible with games
Every emulation does horrible with games.
r
yeah , its not crapples fault.. even native windows for arm not good with games, But thats why its just not for me... i need to game on the go
if i REALLY wanted to , i could pirate a copy of mac os and run on vmware, but i already am balls deep with trying to fix classicpowermenu (android project)
s
It took me some time to realize that "crapple" is a playful term for Apple. πŸ™ˆ While I also have my reservations about Apple, do you feel that using such terminology might come across as somewhat immature?
r
do you think i come across as a mature person? also on a lot of android discords ,especially ones about more fun parts of the OS, thats quite common, in fact thats where i picked it up from.
s
do you think i come across as a mature person?
No. πŸ˜„
πŸ˜† 2
πŸ˜‚ 4
j
It also took me some time, mostly because I didn't expect this kind of language on this forum. It's the kind of names I used to use when I was a teenager, and definitely sounds immature, especially when repeated insistently instead of using it as a simple nudge once to get a point across
βž• 2
s
Indeed. I used to say "Wintendo" to Windows to state that I only used it for gaming and Linux for everything else. Then I turned 18.
r
im not gonna argue with you guys on that, it is 100% immature... lol
Oh yeah i hate Nintendont more than crapple and microbad combined
j
You seem to hate a lot of things πŸ˜„
πŸ˜„ 2
s
Was going to say the same. πŸ˜„
r
I value software freedom AND stability... welcome to the modern world
s
We do the same. You know that everything we use here is Open Source. πŸ˜‰
r
what phone do you use?
s
I was referring to Kotlin, Compose, Android, etc. πŸ˜„
r
you use android right? do you mind going inside your google pay database and telling me how many enteries are in there?
s
I got a Samsung Galaxy and an iPhone. I bought a lot of apps on both systems. I also have an MacBook and an Windows PC as well as servers running Linux. I'm everywhere at home. πŸ˜„
r
great, i pride myself on using platforms even if i hate them
like linux
s
My rooted stock Android days without Google are behind me πŸ˜‰
r
and once again, im not a linux hater, i ❀️ what linux has done for the world just putting that out there
I use google, but am rooted
s
Been there, done that.
Nowadays I develop on and for all systems.
r
THats actually pretty cool, you get to loathe everything
s
Or you can use every system where it excels. πŸ˜‰
r
I develop for backend systems at work and develop whatever i need otherwise. I just recently got the hardware done for mouting a screen to my pc... i pissed off a lot of people
by being dumb
s
i pissed off a lot of people
I can imagine that. πŸ˜„
r
kylo ren is my idol
s
Dude, how old are you?
r
25 , mentally 15
s
πŸ˜„
r
but dont let my young age or love for kylo ren fool u, im a starwars loremaster (cannon only)
s
Ok, I guess by now this is something that should be discussed in #random πŸ˜‰
r
fair