Custom, Reusable Widgets in Flutter

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024
  • This tutorial goes through how to create custom, reusable widgets in Flutter. This will enhance your code quality and clean up the amount of repetitive code that you write in your projects.
    If you have any questions or are needing help with your Flutter project, join the Bleyl Dev discord and connect with other Flutter developers to help answer your questions!
    Source Code: github.com/Bob...
    ✅ Discord: / discord
    ✅ Twitter: / bleyldev
    ✅ Facebook: / bleyldev
    ✅ Medium: / bleyldev
    ✅ The Flutter Shop: teespring.com/...
    I’m also big on investing, claim an extra free stock with WeBull using my referral link: act.webull.com...
    #flutter #flutterdev #widgets

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

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

    Awesome video and explanation. Very cool.

  • @segunthemarketer2195
    @segunthemarketer2195 2 ปีที่แล้ว +1

    Thanks for this... Love the video

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

    If no parameters are entered, the IDE will not provide a prompt until runtime. How can I resolve this?

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

    Thank you!! It helped me a lot.. Hugs from Brazil!!

    • @BleylDev
      @BleylDev  2 ปีที่แล้ว +1

      Abraço!

  • @franklinguang
    @franklinguang 3 ปีที่แล้ว +2

    I really liked your video explaining some simple yet important building blocks of flutter. Thanks. Could you make something like a road map for new beginners to follow through ?

  • @tasaddaqrandhawa4219
    @tasaddaqrandhawa4219 3 ปีที่แล้ว +1

    Hi you are techer
    Now am your new subscriber

  • @usmanbutt3786
    @usmanbutt3786 3 ปีที่แล้ว +1

    How someone can contact you to ask a question about flutter problem?
    Any direct connection method with you??
    Where you can reply briefly??

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

      Email attached to channel, or check out the Bleyl Dev discord(link in description)

  • @parassharma7762
    @parassharma7762 2 ปีที่แล้ว +1

    Thank you Sir

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

    Hi sir
    Please make a series on flutter
    From a very beginer level to yours level step by step

  • @Adam-hy9ou
    @Adam-hy9ou 2 ปีที่แล้ว

    By the time I had copied up to 3:12 mine was asking for a Key, but I notice yours didn't insist on one. Any thoughts on why? Our code is identical. I also noticed you dont get any null safety warnings given the final variable hasn't been given a default value. Confused how I get these warnings but you dont? Maybe an IDE thing?

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

      Probably different versions of flutter and something got deprecated or changed. I’d Google the specific error you’re getting. I’m sure someone else has come across it on stackoverflow.

    • @Adam-hy9ou
      @Adam-hy9ou 2 ปีที่แล้ว +1

      @@BleylDev cheers. I've since added a key to the constructor and just used super to populate it 👍

    • @Adam-hy9ou
      @Adam-hy9ou 2 ปีที่แล้ว

      @@BleylDev great video btw really helped me grasp the topic. Now looking forward to deleting duplicate code!

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

    what about events or actions ? suppose I want run different things on taping of buttons

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

      You'll just need to add some logic to determine what you want to execute when a button is tapped in the onPressed or onTapped event.

    • @JJP-lb3ek
      @JJP-lb3ek ปีที่แล้ว

      @@BleylDev would be nice to have that in the video too, i think thats where the difficulty is. Especially with functions that have arguments, and how to organize all that.

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

    How do I handle different onpressed in this case?

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

      I’m not sure I understand what you’re asking, could you rephrase?

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

      As done with input text, you would make action a parameter for the button

    • @kingmanhusada824
      @kingmanhusada824 3 ปีที่แล้ว +2

      @@BleylDev I believe what he asked is the callback, because every button must have onPressed for specific function, so if we created a custom button widget, how to handle the onPressed

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

    i like your blue eyes :)