Flutter - Widget Communication using VoidCallback and Function(x)

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

КОМЕНТАРІ • 53

  • @eiht88
    @eiht88 2 роки тому +4

    Life saver. Simple & clear explanation. Appreciate it🙏🏽

  • @TheTadeu17
    @TheTadeu17 4 роки тому +1

    thanks a lot, I was looking for Function(x) all over the places

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

    love your editor font please tell me which is it

  • @rebarius
    @rebarius 5 років тому +3

    👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼 Very good explanation! I used that VoidCallback last time when i implemented my Sources for my PaginatedDataTable 💪🏼

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

    Very clear explanation, You gave the solution that I have searching for days💖

  • @Ainigma
    @Ainigma 4 роки тому +3

    Splendid tutorial. Helped me 100%. Thanks and cheers.

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

    Hello, what visual studio theme do you use ?, looks great

  • @jefffrazier6813
    @jefffrazier6813 5 років тому +3

    Such an awesome detailed explanation Paul! 👏🏼👏🏼👏🏼👏🏼

  • @钟晓鸿
    @钟晓鸿 4 роки тому +1

    I have a question that why ‘Count ’ construction method is called when it excute Function(int),

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

    Love the content on your channel, multiple useful videos. Kudos!

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

    this explains it very easily! thanks

  • @Mukkonnakal
    @Mukkonnakal 4 роки тому +1

    Thank you! awesome explanation

  • @yuhabkat
    @yuhabkat 4 роки тому +1

    what if count is a StatefullWidget, where do i put count? in the State?

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

    thank you , this solution help me alots, i generaly create sapreate wigdet

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

    what fonts are u using in vscode?

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

    CMIIW so the voidcallback use if the callback doesnt have any parameter. and the function use when the callback return any parameter. am i right?

  • @alibubere5469
    @alibubere5469 4 роки тому +6

    I've been searching for something to pass data back to a stateful widget from a stateful widget.

  • @wiaamkareem6186
    @wiaamkareem6186 4 роки тому

    thank you very much i was confused about this subject

  • @yakupSubasi
    @yakupSubasi 4 роки тому

    This is amazing man. Pls create more content.

  • @SAlpay-fj6gf
    @SAlpay-fj6gf 4 роки тому

    Thanx for this great tutorial. Just try to understant the logic. On the counter dart why did we extand our class with stateless widget? Cant we open normal class and without that build function in class?

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

    Thanx man you helped me lot,

  • @internetcollections6453
    @internetcollections6453 4 роки тому

    Great video... Which extension you are using in VS code for this type of beautiful text and display?

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

    Great explanation ...

  • @hugonemsr
    @hugonemsr 5 років тому +2

    Thanks! Greetings from Chile

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

    It's perfect. Thank you

  • @javohir307
    @javohir307 4 роки тому +1

    this really helped me, thanks

  • @red010182
    @red010182 4 роки тому +1

    Since Count widget is stateless, does this mean that any change of count variable leads to re-construct Count widget?

  • @florianmarcu1366
    @florianmarcu1366 4 роки тому +1

    Hello ! I noticed you can use the setState() method when setting the onCountChange() argument. However, in my case, i can't do so because flutter warns me that I am trying to pass a non-static method as a parameter. Is there any solution to this?

    • @paulhalliday
      @paulhalliday  4 роки тому +1

      Want to put your code on GitHub so I can take a look?

  • @AhmadAshraf-qs7ud
    @AhmadAshraf-qs7ud 3 роки тому

    this is very helpful ... thank you

  • @sr_saad
    @sr_saad 2 місяці тому

    Now, how do you communicate with child class from parent? Like sending data to child?

  • @javohir307
    @javohir307 4 роки тому +3

    could you tell us a plugins and fonts you using in vscode . Because yours looks beautiful ;)

    • @paulhalliday
      @paulhalliday  4 роки тому +1

      Thanks Javohir! I have videos on my terminal and font setup here: ua-cam.com/video/8q0KITkJee0/v-deo.html
      ua-cam.com/video/NoPe1KXYOtg/v-deo.html

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

    how about using block whats differnece between bloc and voidCallback pls help i am confused here

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

    please can you explain all methods in this vsCode Dart Data Class Generator?
    Features
    The generator can generate the constructor, copyWith, toMap, fromMap, toJson, fromJson, toString, operator == and hashCode methods for a class based on class properties or raw JSON.

  • @fxman9722
    @fxman9722 4 роки тому

    Sir thanks for the tutorial. I am new to flutter. I have a problem passing a String variable from Scaffold body to a fixed button created using bottomnavigationbar which is outside the scaffold body but in same screen. Can I use call back to get value of string in bottom navigationbar or do I need provider. Sir plz give me some hint.

  • @findsarfaraz
    @findsarfaraz 4 роки тому

    What if these + and - Buttons are on parent widgets.... and you want to do the increment.

  • @akashkv41
    @akashkv41 9 місяців тому

    Thank you

  • @MuhammadAmir-mf9xt
    @MuhammadAmir-mf9xt 5 років тому +2

    Amazing 👍👍👍

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

    thanks sir.

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

    Thanks brooo👍👍👍👍

  • @if6086
    @if6086 4 роки тому

    Excellent.

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

    tnx

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

    thanks buddy

  • @abhisheks8464
    @abhisheks8464 4 роки тому

    I am student, Plz anyone tel me where and when use child and children in widget using flutter, I am totally confused

    • @paulhalliday
      @paulhalliday  4 роки тому +1

      Child is used for a singular widget, and children is used for multiple widgets.
      An example here would be:
      Container(child: Text(“hello”))
      Column(
      children: [
      Text(“hi”),
      Text(“ho”)
      ])

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

    Nice

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

    You are moving too fast for real beginners.