Draggable and DragTarget | Drag and Drop in Flutter

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • Make Widgets draggable and set up dragtargets to drag the widgets into in this introduction to the draggable and dragtarget widgets in Flutter.
    00:00 Intro and Boilerplate
    01:41 Make Widget Draggable
    02:51 DragTarget
    04:10 Drop Status Variable
    05:18 Custom Draggable Widget
    07:37 Pass emojis between
    09:06 onWillAccept
    10:26 Material on feedback and Outro
    #flutter #learnflutter
    Instagram:
    learnflutterwithme
    Stuff I use for this channel (Affiliate Links)
    SanDisk 1TB SSD amzn.to/3j1U8py
    Elgato Cam Link 4K amzn.to/37EyqBK
    Logitech G600 Mouse amzn.to/36DYFYz
    Logitech G Pro Keyboard amzn.to/3saco38
    Macbook Pro M1 13" amzn.to/36GzbKc
    Neewer Mic Arm amzn.to/3z7RvIm
    Davinci Resolve amzn.to/3erEb9I
    Adobe Photoshop Elements amzn.to/3BkPKth

КОМЕНТАРІ • 22

  • @isaacsouza712
    @isaacsouza712 Рік тому

    The form as you explain it's so clean, i'm brazilian but i can understand, thanks for you tutorial.

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

    Thank you for the tut. You explain much better than many of the content makers on flutter out there. Keep going

  • @Apenschi
    @Apenschi Рік тому

    Very good explanation! Thanks!

  • @BitByBit1808
    @BitByBit1808 7 місяців тому

    Thanks for the clear explanation!

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

    Wow, thank you so much. I was searching for this for the longest time.

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

    it was really awesome
    thanks for such a beautiful explanation😍

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

    Really Great Tutorial Sir. Very clear explanations. Keep up your great work Sir.

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

    thank you

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

    Nice video!

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

    Thanks a lot for the great tutorial, it helped a lot with my project. I have a question, I have added a shuffle function but it's inside the initState() so it wont shuffle in the build. So I want to create a button to reset to initial state and also shuffle but I am stuck, is there an easy way on how to do it?

  • @kennyn.8233
    @kennyn.8233 2 роки тому

    Nice and thanks for sharing. Question- how about dragging a couple of grid cells over another? Any good approach?

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

    Thanks for your efforts, the video was very helpful, but I am getting an error sys: Null check operator used on a null value error
    when implementing the onAccept callback
    Would you help me to solve that?

  • @batuhanerdem7067
    @batuhanerdem7067 Рік тому

    Hi For example, how can we paste a t-shirt widget on top of a person's picture to wear another picture on top of the picture? I don't want draggable widget don't fill the draggable widget target

  • @MAhmad-vj2pn
    @MAhmad-vj2pn Рік тому

    what's the name of extention which is showing widget tree on right?

    • @LearnFlutterwithMe
      @LearnFlutterwithMe  Рік тому

      I unfortunately do ALL of those by hand. It's time consuming, but I think (hope) it helps understand where I'm at in the code during the videos!

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

    Draggable widget this kind of example is nothing new for me. One of many. What I would like to see here is a proper theme to show action, interaction (focus hover dragging) . I am disappointed. Hopefully part 2 will come .

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

      Hi Marcin! Yes this was an introduction video which since you're familiar with it already it doesn't help you much. I do plan on doing a more in-depth video, hopefully I can work that in before too long. Thanks for the feedback!