Flutter - Widget Communication using VoidCallback and Function(x)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024

ความคิดเห็น • 52

  • @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

  • @rebarius
    @rebarius 4 ปีที่แล้ว +3

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

  • @weirdbuggames
    @weirdbuggames ปีที่แล้ว

    this explains it very easily! thanks

  • @Ainigma
    @Ainigma 4 ปีที่แล้ว +3

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

  • @pulsarasandeepa
    @pulsarasandeepa 3 ปีที่แล้ว

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

  • @JAY-bo7tg
    @JAY-bo7tg 2 ปีที่แล้ว

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

  • @Mukkonnakal
    @Mukkonnakal 4 ปีที่แล้ว +1

    Thank you! awesome explanation

  • @jefffrazier6813
    @jefffrazier6813 4 ปีที่แล้ว +3

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

  • @bashka411
    @bashka411 ปีที่แล้ว

    It's perfect. Thank you

  • @soufianeassil3718
    @soufianeassil3718 3 ปีที่แล้ว

    Thanx man you helped me lot,

  • @hugonemsr
    @hugonemsr 4 ปีที่แล้ว +2

    Thanks! Greetings from Chile

  • @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

  • @javohir307
    @javohir307 4 ปีที่แล้ว +1

    this really helped me, thanks

  • @akashkv41
    @akashkv41 6 หลายเดือนก่อน

    Thank you

  • @user-qn5lw3bh3o
    @user-qn5lw3bh3o 4 ปีที่แล้ว +1

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

  • @tejasmd8143
    @tejasmd8143 ปีที่แล้ว

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

  • @yuhabkat
    @yuhabkat 4 ปีที่แล้ว +1

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

  • @alwidfamily
    @alwidfamily ปีที่แล้ว

    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?

  • @AhmadAshraf-qs7ud
    @AhmadAshraf-qs7ud 3 ปีที่แล้ว

    this is very helpful ... thank you

  • @baongocngo70
    @baongocngo70 3 ปีที่แล้ว

    thanks sir.

  • @yakupSubasi
    @yakupSubasi 3 ปีที่แล้ว

    This is amazing man. Pls create more content.

  • @deepakrattan2328
    @deepakrattan2328 3 ปีที่แล้ว

    Great explanation ...

  • @johnmartin9329
    @johnmartin9329 ปีที่แล้ว

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

  • @Sanjay54251
    @Sanjay54251 3 ปีที่แล้ว

    thanks buddy

  • @gfdsggsdfs9472
    @gfdsggsdfs9472 3 ปีที่แล้ว

    tnx

  • @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?

  • @javohir307
    @javohir307 4 ปีที่แล้ว +4

    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: th-cam.com/video/8q0KITkJee0/w-d-xo.html
      th-cam.com/video/NoPe1KXYOtg/w-d-xo.html

  • @red010182
    @red010182 4 ปีที่แล้ว +1

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

  • @MuhammadAmir-mf9xt
    @MuhammadAmir-mf9xt 4 ปีที่แล้ว +2

    Amazing 👍👍👍

  • @fiendsgaming7589
    @fiendsgaming7589 2 ปีที่แล้ว

    what fonts are u using in vscode?

  • @Iamsafuvan
    @Iamsafuvan 2 ปีที่แล้ว

    Thanks brooo👍👍👍👍

  • @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?

  • @Ayoub_Shnab
    @Ayoub_Shnab ปีที่แล้ว

    Nice

  • @shadirvanislive
    @shadirvanislive ปีที่แล้ว

    love your editor font please tell me which is it

  • @if6086
    @if6086 4 ปีที่แล้ว

    Excellent.

  • @faisalfotoh1909
    @faisalfotoh1909 2 ปีที่แล้ว

    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.

  • @angelocampo1017
    @angelocampo1017 3 ปีที่แล้ว

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

  • @internetcollections6453
    @internetcollections6453 4 ปีที่แล้ว

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

  • @findsarfaraz
    @findsarfaraz 3 ปีที่แล้ว

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

  • @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.

    • @JAY-bo7tg
      @JAY-bo7tg 2 ปีที่แล้ว

      no need to provider

  • @abhisheks8464
    @abhisheks8464 3 ปีที่แล้ว

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

    • @paulhalliday
      @paulhalliday  3 ปีที่แล้ว +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”)
      ])

  • @muhammadali4653
    @muhammadali4653 ปีที่แล้ว

    You are moving too fast for real beginners.