Flutter Tutorial - Slider

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

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

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

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/slider_example
    Range Slider Tutorial: th-cam.com/video/KPxq3SLjg98/w-d-xo.html
    Slidable - Swipe To Action Tutorial: th-cam.com/video/TmSKRUVKNsQ/w-d-xo.html
    Switch Tutorial: th-cam.com/video/PVuJ-If0AuU/w-d-xo.html
    Dismissible - Swipe To Action Tutorial: th-cam.com/video/cswTKnXtSqk/w-d-xo.html
    Slide Transition Animation Tutorial: th-cam.com/video/cxxHE0TTGbU/w-d-xo.html
    Buttons 2.0 Tutorial: th-cam.com/video/ytlDKJBxW_A/w-d-xo.html
    Buttons 2.0 For Web Tutorial: th-cam.com/video/V1Evs000yv8/w-d-xo.html
    Text Banner Tutorial: th-cam.com/video/tmv42IcXh9M/w-d-xo.html
    Material Banner Tutorial: th-cam.com/video/tmv42IcXh9M/w-d-xo.html
    SnackBar Tutorial: th-cam.com/video/UkudAgCEhBI/w-d-xo.html
    FlushBar Tutorial: th-cam.com/video/H-XEIkUfN4M/w-d-xo.html

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

    This is exactly what i need, thank you. Another long video for weekend

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

    Nice simple approach for that vertical slider, works great as level indicator. Even though I have used that RotatedBox several times as well, it never occurred to me that it can perform magic on Sliders too, thx for this nice tip! 💙

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

      @@HeyFlutter Nice thing with Flutter’s extremely composable widgets is that you can come up with creative solutions like this 👍 Don’t need an API for everything, just small flexible Widgets you can use to compose what you want, wrap it all as a custom widget and call it a day! 💙

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

      Thanks, Mike! 🙂 Yeah, it is a nice trick until the Flutter SDK supports vertical sliders by default. 💪

  • @user-xe8vl9eh9l
    @user-xe8vl9eh9l 3 ปีที่แล้ว +1

    hi mr.milke you just amaze us with your videos thank you very much

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

    It's you again for the save.
    Thanks a ton!

  • @RaviGupta-om3vx
    @RaviGupta-om3vx 3 ปีที่แล้ว

    Just Don't Break the consistency
    Awasome content.

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

    @JohannesMike, you saved my day, Thanku so much

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

    The vertical slider breaks when built for web. It works, but visually it is smeared when rendered in chrome, firefox and edge.

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

    Is there any option to change the thumb shape circle to an arrow

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

    Keep going👍👍please try to make google fit integration.. Really need it. Waiting.. Thanks

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

      Thank you, Sumayya! 🙂 I have added it to my list of ideas, however, I release already other videos for the near future.

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

    Awesome tutorial👌👌
    Thank you so much for this tutorial!!
    If possible please make a deep dive tutorial on dio package.
    #flutter #happycoding

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

      @@HeyFlutter excellent sir
      And thank you so much for sharing a great content and stay healthy!

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

    Can you make the labels visible at all times and no only when the slider is selected? Or an alternative?

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

      Thank you, Alex F!😊, This is not possible with this in-built slider widget

  • @ex_script7091
    @ex_script7091 8 หลายเดือนก่อน

    Percebi que é a maior dificuldade colocar gradiente em Slider.

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

    Thank you much much much

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

    Hi man, thanks for the Flutter classes. I would like to be a subscriber to your channel here on TH-cam. I noticed that you use Git for support. Do you plan to make the support option available here through the Google platform? grateful

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

    thnxxx ❤️

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

      You are welcome, tayyiba yousaf!

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

    bro i have created two silders on a page one below the other but the problem i am facing is when i move any slider the other slider updates its value ...so what to do i am stuck

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

      Thank you, See The World! 🙂. Set state causes the widget to rebuild. This causes your functions that build the sliders to be invoked every time on rebuild. So instead of using a function and return a slider, create a separate widget that builds your slide

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

      @@HeyFlutter Thanks for replying bro i solved that problem by wrapping the slider theme and slider with stateful builder inside a showmodalbottom sheet

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

      @@HeyFlutter But now the problem which has arised is I have a text below the slider to show the user that how the fontsize has affected the text using slider but the text isn't changing as the slider moves...

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

    Hi Johannes, thanks for the video. When using trackShape: RoundedRectSliderTrackShape(), the corner radius becomes 0 when the value is 0 or 100. Do you know how to fix that?

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

      @@HeyFlutter , thanks. I don't see much customization in this class. for example, trackRadius is hardcoded in paint() method - I was wondering if you have an example overcoming this limitation.

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

      Wrap with a cliprrect widget with border radius

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

      Thank You Liz Brownwood! Follow this link: api.flutter.dev/flutter/material/RoundedRectSliderTrackShape-class.html
      I hope you will get your answer 🙂

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

    Can I also customize the value indicator? Like adding some borders or setting a size of it?

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

      Thank You Jjamppong! Yes you can. Follow this link to learn more about it: api.flutter.dev/flutter/material/Slider-class.html 🙂

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

    Where does the setState() come from? It says it's not defined

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

      @@HeyFlutter Thanks

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

      Thanks, Eric! 🙂 You need to be within a Stateful class to have access to setState. Learn more about it here: th-cam.com/video/FL_U8ORv-2Q/w-d-xo.html

  • @rumpeteverything
    @rumpeteverything 2 หลายเดือนก่อน

    amazinggg

    • @HeyFlutter
      @HeyFlutter  2 หลายเดือนก่อน

      Thank you, @rumpeteverything! 🙂

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

    Can u add image instead of the circle 🔴 can anybody tell this how to do

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

      Thank You @crazy_gamers_0079! Follow this link: stackoverflow.com/questions/58116843/flutter-how-to-add-thumb-image-to-slider
      I hope you will get your answer 🙂

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

    my slider is changing value but not moving

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

      @@HeyFlutter i am using getx with stateless widget

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

      You need to call setState within the onChanged property, Mohammed! See the source code for more details: github.com/JohannesMilke/slider_example/blob/master/lib/widget/slider/slider_color_widget.dart