Master Scroll Animations in Flutter

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 97

  • @alvin3171997
    @alvin3171997 3 года назад +21

    I can see that the new videos topic can be more advanced and lesser known even to seasoned flutter developers, loving it! 😍💯

  • @Fireship
    @Fireship 3 года назад +78

    Smooth animations, nice work!

    • @FilledStacks
      @FilledStacks  3 года назад +6

      Eyooooo you watched Jeff!! Thank you 🤩

  • @cnorse
    @cnorse 3 года назад

    Oh wow, the voice is clear and the animation is wow.

    • @FilledStacks
      @FilledStacks  3 года назад

      I'm happy to hear the audio sounds better 😁 and thank you. We try to keep the videos interesting.

  • @carlomigueldy
    @carlomigueldy 3 года назад

    Good to learn more about Slivers! One of my weakness 😅😁
    And animations are sleek!! 👌👌👌

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Haha, I think it's most Flutter dev's weaknesss, but it opens the door up to some great looking UI if it's understood.

  • @Bfas237Forum
    @Bfas237Forum 3 года назад

    Short or not
    Well explained in details.
    You are a pro ❤️❤️❤️❤️

    • @FilledStacks
      @FilledStacks  3 года назад

      Much appreciated. I'm very happy to hear that.

  • @anonymous_246
    @anonymous_246 3 года назад

    Fireship and You are GODs. Thank both of you for the quality content.

    • @FilledStacks
      @FilledStacks  3 года назад

      You are very welcome, thanks for watching and leaving a comment.

  • @nabil.hamawi
    @nabil.hamawi 3 года назад

    This is astonishingly a good animation WOW! good job buddy

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thank you, thank you! And thanks for leaving a comment 😇

  • @BoxInside
    @BoxInside 3 года назад

    Awesome video! Aesthetic design, smooth animations, good explained. Keep it up! :)

    • @FilledStacks
      @FilledStacks  3 года назад

      Thank you, I appreciate the great comment.

  • @thisswanwearssocks
    @thisswanwearssocks 3 года назад

    Love the cheer/applause at 5:14 :D

    • @FilledStacks
      @FilledStacks  3 года назад

      Thank you for noticing 😆 gotta have some fun with the videos. It's been becoming a chore, but now it's fun again 😁

  • @natheeralgazaly3438
    @natheeralgazaly3438 2 месяца назад

    Nice work and easy

  • @berosolo866
    @berosolo866 3 года назад +1

    Now we cooking 🔥🔥

  • @ferferrara
    @ferferrara 3 года назад +1

    Very clear as always! 👏

    • @FilledStacks
      @FilledStacks  3 года назад

      🥳🙌 Awesome! It was a difficult concept to break down. didn't want to make it too complex.

  • @VictorKun
    @VictorKun 3 года назад

    There are so many things, I'll need to start reading and playing in vs code

    • @FilledStacks
      @FilledStacks  3 года назад

      You should! It's a magical tool to use :D

  • @kartikshrivastava1500
    @kartikshrivastava1500 3 года назад +1

    Hi, thanks for this explanation! Additionally, in a scenario where I've multiple sticky slivers how can I only show single sticky sliver at a time and push (or pull) away rest of them.
    Edit: I'm also getting this error: "The following assertion was thrown during performLayout():
    SliverGeometry has a paintOffset that exceeds the remainingPaintExtent from the constraints.".
    I've checked few times that I've copied correctly, tho what's the use of "myCurrentConstraints" which wasn't used?

    • @FilledStacks
      @FilledStacks  3 года назад +1

      that was simply to indicate that it's your current constraints.
      In terms of multiple slivers. This video shows you how everything works, you'll have to understand what's in this video and then use that to implement whatever solution you're looking at doing.

  • @sravk245
    @sravk245 6 месяцев назад

    This was super helpful. Question: How do you identify the indices of the item that are currently visible? I want to fire off an event tracker when a particular item is currently visible on the screen on a long list of scrollable items. Is this even possible?

    • @FilledStacks
      @FilledStacks  6 месяцев назад

      Yes, you can do that.
      There's a few package that do it.
      Most of them use a combination of the offset + itemSize + listBounds to manually calculate if the item is available.
      The offset will tell you when an item is off screen at the scrolling direction end.
      The itemSize can be used to understand when that item has left the screen.
      The listBounds can be used to determine when an item has entered the screen visibility.
      This video is 2 years old so I think there might be additional properties you can explore.
      Check out the source of some of the "visibilty packages" and see what they do in the latest Flutter.

  • @ThirunavukarasuC
    @ThirunavukarasuC 3 года назад

    Great.
    Very informative video.
    You may do a detailed videos on customizing the widgets with renderer please.
    Awaiting for more videos with bit more details on how do implement. 👍

    • @FilledStacks
      @FilledStacks  3 года назад +1

      I'm happy to hear that you found it useful. Thank you for the idea, that's definitely something that I'd like to make a video about in the future.

    • @ThirunavukarasuC
      @ThirunavukarasuC 3 года назад

      @@FilledStacks eagerly waiting. ❤️

  • @bodehallak1552
    @bodehallak1552 3 года назад

    Thank you soo much, I wonder where these details and content come from

    • @FilledStacks
      @FilledStacks  3 года назад

      Hey, you're very welcome. It comes from my brain haha. I research and then understand and then teach it.

  • @antwill8283
    @antwill8283 3 года назад

    Needed this! hahah thank you.

    • @FilledStacks
      @FilledStacks  3 года назад

      You're very welcome. I'm happy I can help shed some light on the Sliver concepts.

    • @antwill8283
      @antwill8283 3 года назад

      @@FilledStacks I have a question about something quite advanced mind if i send you an email? Just need some advice!

  • @geddonarma566
    @geddonarma566 3 года назад +1

    What did you use to animate the first part of the video? The texts, and everything? Great work by the way!

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Adobe Aftereffects is what I think the editor used. And thank you. I appreciate it, we put a lot of effort into it.

    • @geddonarma566
      @geddonarma566 3 года назад

      @@FilledStacks Thank you!

  • @dreamerslab
    @dreamerslab 3 года назад +2

    Hello. Great to see you upload such amazing content.
    I have a questing that Viewmodel Builder returns a Widget so we can't use it directly where we want to add slivers. So can there be any way that ViewModelBuilder return Sliver instead of a regular widget?

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Hey, you can use it directly :D You can Wrap it in a SliverToBoxAdapterClass and it will wrap it in a sliver and show it in the custom scroll view.

    • @dreamerslab
      @dreamerslab 3 года назад

      @@FilledStacks great. I will surely check and let you know.

    • @dreamerslab
      @dreamerslab 3 года назад

      @@FilledStacks I used SliverToBoxAdapter but as I expected, I lost the scrolling functionality. Now the list is not able to scroll.

    • @FilledStacks
      @FilledStacks  3 года назад

      You want a lost inside of a list? You'll have to use a SliverList.

  • @sciency_stuff
    @sciency_stuff Год назад

    Dude, how do you make your presentation? I’m working on my own channel. It’ll help me a ton.

    • @FilledStacks
      @FilledStacks  Год назад +1

      This is all done in After effects. Basic translation animations with easing curves that make it look good.

    • @sciency_stuff
      @sciency_stuff Год назад

      @@FilledStacks thanks a ton dude! You’re bit of an inspiration.

    • @FilledStacks
      @FilledStacks  Год назад

      @@sciency_stuff That's great to hear. Happy to add a bit of inspiration to anyone's journey.

  • @juniordance25
    @juniordance25 2 года назад

    Great content 👍🏻
    I have one question, can you make it work like Sticky position in CSS
    So when it scrolls up and down,it should get stick to top and bottom

    • @FilledStacks
      @FilledStacks  2 года назад

      Yes, you use max of (currentOffset, 0). This means when it gets to 0 and offset goes to negative value, then 0 will always be used and your list item will always draw at the top.

    • @juniordance25
      @juniordance25 2 года назад

      @@FilledStacks ruclips.net/user/shortsHk2Uvm0X2mQ?feature=share
      I want this kind of sliver behaviour, is it possible in flutter?

  • @puspharajselvaraj8852
    @puspharajselvaraj8852 3 года назад

    Would you please post video on parallax effect on scroll animation as well. Thanks

    • @FilledStacks
      @FilledStacks  3 года назад

      I don't think I'll do a full video on that implementation since there are multiple packages thay provide the functionality.

  • @gameplaystrailers7797
    @gameplaystrailers7797 3 года назад

    I love this topic so much but how can I make the jelly scroll and parallex effect when you only showed us the the app bar sticking only we can create that sticky effect using sliver list and without doing all the rendering code you showed. I’m very confused please help me understand how I can make those two effects

    • @FilledStacks
      @FilledStacks  3 года назад

      Hey, I showed you how the displacement and the modifications work. You can use the transform widget and skew the list depending on the velocity it's moving.

  • @zerocole26
    @zerocole26 2 года назад

    How do I make it so that if there's second or more StickyHeader, it pushes the existing StickyHeader?Only one StickyHeader on the screen.

    • @FilledStacks
      @FilledStacks  2 года назад

      Hey, I don't know the exact code for that but there's a few packages that does it. Inspect their code and you'll see. Most likely you need to identify "significant headers" and when 1 gets to the same position as the other you adjust both their positions until the one is out of the screen. The same thing in reverse.

  • @ayoubelbadaoui5357
    @ayoubelbadaoui5357 3 года назад

    i didn't understand a thing from this tutorial !! what do i need to learn before i get into this?

    • @FilledStacks
      @FilledStacks  3 года назад

      Flutter would probably be a good place to start.

    • @ayoubelbadaoui5357
      @ayoubelbadaoui5357 3 года назад

      @@FilledStacks well we need a roadmap to advanced flutter skills, Thanks

    • @FilledStacks
      @FilledStacks  3 года назад +1

      @@ayoubelbadaoui5357 I don't think that's required for these. Programming principles in general is probably what's lacking. I'd say
      1. Learn the fundamentals of programming (object oriented programming, since that's what you'll be working in for mobile apps)
      2. Learn engineering fundamentals (code separation, design patterns, building things in pieces)
      3. Learn coding principles most likely the most beneficial will be SOLID principles.
      After that any framework or SDK would be easy to use. I can use literally any framework I want and build anything in it. Because I understand how the framework was built and how to use the pieces to build what I want to build. There's no roadmap I followed for Flutter, or Xamarin, or React Native, or Switf UI, or Kotlin.
      I just learned the syntax and then I applied everything else I mentioned above to it.

    • @ayoubelbadaoui5357
      @ayoubelbadaoui5357 3 года назад

      @@FilledStacks u definitely right thanks for your help , i have been learning flutter for 14 months i make apps but still i feel like i have missed some really important fundamental basics ,THANKS

  • @erlangparasu6339
    @erlangparasu6339 3 года назад

    best as always

    • @FilledStacks
      @FilledStacks  3 года назад

      wooohoooooo! That's great to hear. Thank you.

  • @martinharris4416
    @martinharris4416 3 года назад

    Dan which software did you use for those smooth animations? great work :)

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Hey Mart, This is done in Adobe after effects, but can be done in any motion GFX software like Davinci Resolve. They also have a great motion GFX system.

    • @martinharris4416
      @martinharris4416 3 года назад

      @@FilledStacks After effects takes lot of time, i tried it once. But i guess it depends on your expertise :)

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Yes 😁 It does take a lot of time.

  • @toorjatoorja2388
    @toorjatoorja2388 3 года назад +1

    Awesome stuff! ❤️. Btw do you plan to make tutorials on flutter render and widget building procedure? I mean how they work behind the scenes? Cheers ☺️

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Hey hey, thank you. I appreciate the comment and yes I do. That's something that I'd like to cover.

    • @toorjatoorja2388
      @toorjatoorja2388 3 года назад

      Thank you 💟

  • @ehabaltayyar5884
    @ehabaltayyar5884 3 года назад

    You're amazing 🤙

    • @FilledStacks
      @FilledStacks  3 года назад +1

      You are the amazing one with these animations!!

  • @aymennurhussen3689
    @aymennurhussen3689 3 года назад

    That is wow 🔥🔥🔥

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thanks Aymen! happy I can still impress 😉

  • @lalitfauzdar3873
    @lalitfauzdar3873 2 года назад

    I used your code and my StickySliver's child was a row consisting buttons and in the sticky position, click events just doesn't work. I hope you've any solution for that. Log shows nothing.

    • @FilledStacks
      @FilledStacks  2 года назад +1

      I would never do that, in the past I pinned comments to have a discussion in it. Maybe there was language in there that youtube blocked out, I don't get all the comments that are posted, some go in to a review bucket that I rarely look at.

    • @lalitfauzdar3873
      @lalitfauzdar3873 2 года назад

      @@FilledStacks It is deleted as I can't see it in My comments history and I'm no kid to write some "language" there. It was a highly professional comment. Nonetheless, the issue is at the sticky position when scrolled, the sticky header becomes unclickable. I used your code and my StickySliver's child was a row consisting buttons and in the sticky position, click events just doesn't work. I hope you've any solution for that.

    • @FilledStacks
      @FilledStacks  2 года назад +1

      @@lalitfauzdar3873 Makes sense to think that. But I've never deleted a comment since starting my youtube channel. Regardless of that,
      Flutter uses a hit test to fire the gesture detector. It wont first if that fails.

    • @lalitfauzdar3873
      @lalitfauzdar3873 2 года назад

      @@FilledStacks No issues I've updated my comment. Thanks for your time, Is there any solution for this? I posted this on StackOverFlow day before yesterday but no responses so far.

    • @lalitfauzdar3873
      @lalitfauzdar3873 2 года назад

      @@FilledStacks I had to file an issue on the official repo, they've finally accepted it as a bug after reproducing it. You can look for it, if you want to, on Flutter's repo, issue #106261.

  • @prod.byralph9065
    @prod.byralph9065 3 года назад

    This filledstack guys make flutter so difficult, and it’s supposed to be fun

    • @FilledStacks
      @FilledStacks  3 года назад

      Haha, i thought I was doing the opposite 🤣 I assume you're not building apps that will go into production or be maintained for 7+ years with large teams. Because if so then you can just write literally whatever you want and it wouldn't make a difference 😁

    • @prod.byralph9065
      @prod.byralph9065 3 года назад

      @@FilledStacks shades lol, keep up the good work

    • @FilledStacks
      @FilledStacks  3 года назад

      😉😆

    • @FilledStacks
      @FilledStacks  3 года назад

      I'll try my best. Thanks for leaving a comment

  • @leonardiux345
    @leonardiux345 3 года назад

    Nice.

  • @ibrahimmaghfoul3860
    @ibrahimmaghfoul3860 3 года назад

    Can you make us a tutorial about facebook audience network real ads...all the tutorials are just for test ads and the documentation doesn't say anything about real afs

    • @FilledStacks
      @FilledStacks  3 года назад

      Hey, I've never done that, so I don't think I'll be able to give you anything other than what's in the readme.

  • @jasifk6212
    @jasifk6212 3 года назад

    🔥

  • @deweygaedcke7350
    @deweygaedcke7350 2 года назад

    first two lines of code at 3:20 seems useless ... you aren't ever using "myCurrentConstraints" and you immediately overwrite geometry.zero with an actual value. Are either of those statements needed??

    • @FilledStacks
      @FilledStacks  2 года назад

      No, neither of those are needed. When I explain something I usually show how to access / use it as well. So as I was saying those properties are available I wanted to make sure you know exactly the name of the properties I'm talking about.