Google Maps is Tricky with Jetpack Compose (VLOG)

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 65

  • @hompiler
    @hompiler 3 роки тому +6

    Make the kmm course after this project man. can't wait

  • @renzcarlosalanga1970
    @renzcarlosalanga1970 2 роки тому

    can you share the code on how to do clustering in jetapack compose interop

  • @adriannieto3112
    @adriannieto3112 3 роки тому +1

    Interesting, I'm learning Compose with a demo app that contains a Bottom bar and with a Google Map in one tab and I'm having similar problems. I'll try your approach. Thank you.

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      Wish I could share the code but it's a production project

  • @tanveerabbas26
    @tanveerabbas26 3 роки тому

    it seems john o is coming to your vlog very soon.

  • @piotrprus916
    @piotrprus916 3 роки тому

    Great vlog and great trick with google map. I was wondering, did you try using snapshot in Compose? I tried with no luck. The liteMode is not working and the only workaround I found is to make AndroidView, add markers, etc, call onSnapshotReady, and add the bitmap to the Image component. The problem is, we still have the AndroidView with GoogleMaps, so we need to hide it. It is very hacky. Maybe you have some experience with that matter?

  • @AyorindeAdesugba
    @AyorindeAdesugba 3 роки тому

    Does the sample have the same life cycle issue?

  • @olegalekos2181
    @olegalekos2181 3 роки тому

    Great Job about the KMM project!!!
    So do you think Jetpack Compose has value ? You'll be using compose from now on ?

    • @codingwithmitch
      @codingwithmitch  3 роки тому +1

      Yep compose is the way

    • @olegalekos2181
      @olegalekos2181 3 роки тому +1

      @@codingwithmitch even though it pains me, I have to say bb to xml and dive in compose I guess.
      Thanks for your shitty vlogs Lol

  • @felipefranco7444
    @felipefranco7444 3 роки тому +3

    Dude kmm need to learn this ! I both the founding member membership do not regret it greetings from bogota colombia

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 3 роки тому +2

    Flutter is for Babies, is KMM for oldies?

  • @moneyharry
    @moneyharry 3 роки тому +1

    This time you didn't censor the word "shitty"

  • @cal1314
    @cal1314 2 роки тому +2

    Can you store the objects by remember to avoid re composition from resetting everything, and maybe the map can be reinitialized with a launched effect with the map hashcode as the key?

  • @churraskindequeijo8418
    @churraskindequeijo8418 3 роки тому +2

    I'm really excited about the KMM stuff...

  • @somith16
    @somith16 3 роки тому

    Mitch is xml easy Or compose

  • @solomontolusamuel5031
    @solomontolusamuel5031 3 роки тому +1

    Hey mitch, could you please make a video on how to use google maps in compose?

  • @sam-ri-dha
    @sam-ri-dha 3 роки тому +1

    Started playing with compose for 3 days.Will post on linkedin about my experience once I am done

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 3 роки тому +2

    I got one question for you : Whaat are thooosssseeee?

  • @SriHarshaChilakapati
    @SriHarshaChilakapati 3 роки тому +1

    No censor this time! What will happen to family audience?? ;)

  • @KimKim-ko7sy
    @KimKim-ko7sy 3 роки тому +1

    Hey Mitch, it's tricky but you are almost overcoming the challenge..

  • @hellespont5072
    @hellespont5072 3 роки тому +2

    Really interesting Mitch! I am still a noob app developer but have a few simple projects on the go at the moment, one using Compose and an older one I've been working on for a while doing it the older xml way. You got me hyped up and now gonna get stuck into finishing them up! Loving compose at the moment! I have a 2 week holiday off work in May, really thinking about buying your clean architecture course and completing it all while i'm free from my job for a while! Keep it up, ❤ from UK 😁

    • @codingwithmitch
      @codingwithmitch  3 роки тому +2

      Nice. Ya compose is awesome. I'm glad I hyped you because it is hype

  • @PsijicV
    @PsijicV 3 роки тому

    A cluster with markers that have same coordinates doesn't expand. How to avoid this?

  • @armandoavila4615
    @armandoavila4615 3 роки тому +1

    ENGAGEMENT!

  • @agungwatanabe318
    @agungwatanabe318 3 роки тому

    Hello Mitch, can you tell me how to show that Problems tab in Android Studio? It only showing on IntelliJ in my computer

  • @blacknightmm
    @blacknightmm 3 роки тому

    Faced the same issue and yep, i had to move the map and clusterManager to the viewmodel. This is really shitty. I hope a compose version of google map comes out soon

  • @captainallergy3654
    @captainallergy3654 3 роки тому

    Hey, very good example because Jetpack Compose and google maps is not documented for some reason. Do you have the source code avaiable for this? It would really help me alot! Thanks and great video!

  • @mrktraveller820
    @mrktraveller820 2 роки тому

    Do you have any sample code to render this cluster on map with compose?

  • @aleksamatic9558
    @aleksamatic9558 3 роки тому +1

    can't wait for the kmm series :)

  • @danh6222
    @danh6222 3 роки тому

    If user navigates from a map in a specific position/pin to another composable and then navigates back to the compose containing the map. The map will have to be completely recomposed using state and then pin position reloaded ? Not a great user experience. With fragments we could just resume fragment where we left off if data has not changed

  • @WesleyFranks
    @WesleyFranks 3 роки тому +1

    Yo! Mitch that’s interesting to see how this pans out.

  •  2 роки тому

    Thank you so much! The map in viewmodel thing should become a blogpost. I spent whole day, trying to solve an issue with ghost clusters and this finally worked! Would have never thought of this solution myself.

  • @giuseppefalcone220
    @giuseppefalcone220 3 роки тому

    Mitch saving GoogleMap in view model, me saving Google Maps in Google folder on my home screen (drake meme)

  • @AyorindeAdesugba
    @AyorindeAdesugba 3 роки тому

    You will probably need to wrap it in a UIVIewRepresentable

  • @플루트-c6l
    @플루트-c6l 3 роки тому

    I hope to see adopting qr scanner in compose.

  • @ahmadhamwi4081
    @ahmadhamwi4081 3 роки тому

    Hey Mitch, I just want to ask you if you can show us the way you prefer learning a new platform, just like compose and now the ios app development. Is it by trying out different features in the docs? Or by building some practice app? Maybe you can make a vlog about that?
    Cause I'm kind of in the middle of learning compose rn, and I'd love to know what's your way of learning new programming stuff. Please and thank you.

  • @AyorindeAdesugba
    @AyorindeAdesugba 3 роки тому

    Similar idea to how you wrapped the GoogleMap in a AndroidView for compose

  • @ChrisAthanas
    @ChrisAthanas 3 роки тому

    No bleeps love it

  • @ammarseud5461
    @ammarseud5461 3 роки тому

    Just wanna say that the audio quality is just insane. Also, the bg music is so cozy. I could watch vlogs like these all day (if only I had time).

  • @TheWerBelek
    @TheWerBelek 3 роки тому

    Hey, great vlog! I think that since the GoogleMap object is more of a part of the ViewModel than the view itself since it contains "state" and view. I have two questions:
    1. Since you initially wanted to keep the GoogleMap object in the composable itself, did you consider using remember/rememberSaveable functions?
    2. What do you think about Google Maps android library not receiving any updates in such a long time? It seems like it's an abandoned project. Very strange to me.

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      Actually it's being worked on a lot it seems
      developers.google.com/maps/documentation/android-sdk/v310-beta
      developers.google.com/maps/documentation/android-sdk/ktx
      developers.google.com/maps/documentation/android-sdk/utility
      Did not use remember because rotation would cause issues.

  • @Firespirit233
    @Firespirit233 3 роки тому

    Recently i was watching the video about checking internet connection pinging google, so i thought is it gonna work in China? as i know google is banned there.

  • @robchr
    @robchr 3 роки тому

    If you don't need different layouts for landscape/portrait, setting activity manifest tag attribute android:configChanges="orientation|screenSize|screenLayout|keyboardHidden" will save you a lot of pain. And if you do need custom layouts, you can use ConstraintLayout or MotionLayout to rearrange your views easily.

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      Ya I thought about it honestly but didn't want to take the easy way out

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      Btw this is jetpack compose If you didn't know

  • @jaya-surya-t
    @jaya-surya-t 3 роки тому

    Hey Mitch, I would love to see how to download a file or an image over network in your upcoming KMM videos, and especially how to represent it as a common model/data type in the common module.

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      I don't have downloading but I have videos about uploading images to a server in a previous course. codingwithmitch.com/courses/powerful-android-apps-with-jetpack-architecture/

  • @Marcusube
    @Marcusube 3 роки тому

    What do you use to mirror ur phone on ur mac?

  • @zohaib9381
    @zohaib9381 3 роки тому

    wait how do you do a bottom sheet in compose with using another fragment?

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      I built it myself

    • @zohaib9381
      @zohaib9381 3 роки тому

      @@codingwithmitch will you share that in some video?

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      @@zohaib9381 ya because it was painful. The BottomSheetScaffold doesn't work properly when a google map is in the background so I had to build one from scratch with my own animations and everything

  • @pxnx
    @pxnx 3 роки тому +1

    Totally agree! Ever tried having a ModalBottomSheetLayout where you can change sheet content dynamically using Compose? That's also very tricky😟

    • @codingwithmitch
      @codingwithmitch  3 роки тому +1

      Ya the bottom sheet doesn't work properly I'm building my own

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 3 роки тому

    Chet,Tor and Romain has invited u to Android Developers Backstage podcast