Complex Animations in Flutter Using Rive - Part 2

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • In this tutorial we'll be building a customised animated slideout menu using Flare and Flutter. We're building a gooey slideout menu in Flare from scratch and then implementing the animation interaction in Flutter.
    Animation assets: www.dropbox.com/s/8tt53n2yyo3...
    GitHub source: github.com/FilledStacks/flutt...
    Animation File: www.2dimensions.com/a/danemac...
    Twitter: / filledstacks
    Instagram: / filledstacks
  • НаукаНаука

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

  • @FilledStacks
    @FilledStacks  5 лет назад +8

    I forgot to mention you can clone the repo for this code or download the assets. Links in the description

  • @Din0ssaur0
    @Din0ssaur0 5 лет назад +7

    Congratulations for such detailed and yet fast/not boring tutorial. Thanks!

    • @FilledStacks
      @FilledStacks  5 лет назад +2

      Haha, thank you very much. I was actually a bit concerned that the building process will be a bit boring. Thanks for the feedback.

  • @walidsalhi9583
    @walidsalhi9583 4 года назад +2

    ty so mutch, please continue with this type of tutorials, you are the only one who do it nice

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

      Thank you 😊 i will put a few more tutorials out around flare and the animations.

  • @axela.1884
    @axela.1884 5 лет назад +1

    One of the best flutter anim tutorial out there thank you

    • @FilledStacks
      @FilledStacks  5 лет назад

      Good to hear you got some value from it.

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

    damn I saw your recommendation from fireship...damn This channel is heaven sent....Keep up the good work🙌💯👍

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

      Thanks man! Much appreciated. I'm happy that you like the content. I'll try my best to keep it up

  • @MrRohanrocker
    @MrRohanrocker 5 лет назад +2

    I absolutely love everything about this video. Thank you so much!

  • @yasharma2301
    @yasharma2301 4 года назад +1

    Thank you so much for so many details. Much appreciated!!!

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

      You're very welcome :) I'm happy to hear that it brought you some value.

  • @happynewyearw
    @happynewyearw 5 лет назад +2

    Awesome! thanks for the tutorial!

    • @FilledStacks
      @FilledStacks  5 лет назад

      You're very welcome. Let me know if you get any value from it.

  • @annavolkova7372
    @annavolkova7372 4 года назад +1

    Thank you! Detailed tutorial!!!

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

      You're very welcome. I tried my best to pack all the details into the video.

  • @tasminchalmers
    @tasminchalmers 5 лет назад +1

    such an amazing teacher!

  • @carterv.31
    @carterv.31 5 лет назад

    Very Very cool video. thanks for sharing

    • @FilledStacks
      @FilledStacks  5 лет назад

      You're welcome. Thanks for watching.

  • @greggdourgarian5853
    @greggdourgarian5853 4 года назад

    enjoying these videos, tx

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

      Awesome 🙌🙌 thanks for letting me know.

  • @RoughSubset
    @RoughSubset 5 лет назад +1

    Awe ma se kind :p Great channel, keep up the good work!

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      Hoyaaaaaaa! Salut bru. I will 😎

  • @israelhma9352
    @israelhma9352 4 года назад

    Eres un crack bro ;D, sigue si compa

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

      I tried to translate that but I don't know what that means 😅

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

    really nice animation.

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

      Thank you. It's an oldie but a goodie.

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

      @@FilledStacks Is this possible with the current status of the new rive 2 package?

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

      @@king4053 Yes, everything should still be possible to do.

  • @newArrayGIS
    @newArrayGIS 4 года назад +1

    Thank you 🙏🏼

  • @moradiashrafe5223
    @moradiashrafe5223 5 лет назад +1

    Congratulation keep go on

  • @rajdave9862
    @rajdave9862 5 лет назад

    OMnS
    Amazing wow

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thanks for watching the video 😊

  • @ammonialime
    @ammonialime 4 года назад

    Thanks for the intro to the Smart Flare library. Very cool. I have a quick question. Lets say I have a button that allows a user to subscribe/unsubscribe. The button has 2 simple animations in Flare that simply animate from one state to another. This state is loaded from firebase. When the state is changed by the user, i update firebase, and with the help of StreamProvider, the change is reflected after the update, however i'm unsure how to show the proper state of the button on the screens initial load? Is there an idiomatic way to do this? Should I have 2 different artboards?

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

      Thanks for the interest in it. For something like that I would use the base Flare widget and not a smart flare actor. This way you can control your animation being played by simply changing the animation name that's returned from the firebase stream update. So basically just setting the new animation name and rebuilding your Flare actor with the given animation.

    • @ammonialime
      @ammonialime 4 года назад

      FilledStacks Thanks for your reply. The problem with that is when a relevant screen is loaded the animation plays. But really it should only show the the current state, for example subscribed or unsubscribed, and play the animation only when the user presses the button

  • @omareltigani7718
    @omareltigani7718 5 лет назад

    Hello. I made my flare animation and it worked well on the 2dimensions web page. Then I used this animation in Flutter and it worked like before. A few days ago all of my flare animations started to be delayed. When i first load a page which contains flare animation, the flare animations appear on the screen like 1-1,5 seconds later than the flutter widgets. Does anybody know what the problem is?

    • @FilledStacks
      @FilledStacks  5 лет назад

      Hey, I haven't worked directly with flare animations recently. If you think it's a library issue you should log it on their github repo for Flutter flare so they can know about it.

  • @shoikatmd1907
    @shoikatmd1907 4 года назад

    Please make a video for => How to use dynamic Icons for this animation? means without previously created any icons but only create water animation or floating animation?

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

      Hey, sorry for only replying now. Your comment was in the spam section. I don't know what you're asking man. I created the animations from scratch.

    • @shoikatmd1907
      @shoikatmd1907 4 года назад

      @@FilledStacks I don't want to use flower or fruit icon. I want to provide flutter icons manually.

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

      @@shoikatmd1907 Then you can convert those icons into images and use it in the place of the flower or fruit icons. The animation is one total animation, it's not separate. This type of animation only works if you're building large all in one animations that would be very difficult to do in code.

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

    Unable to import my assets in rive 2 ... No assets panel is available in rive 2

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

      There's probably a different way of doing it. You'll have to check around there.

  • @rohanpatil8417
    @rohanpatil8417 5 лет назад

    How can we capture click events on the Menu Item?

    • @FilledStacks
      @FilledStacks  5 лет назад

      Pass in an Active Area for that position.

  • @GomzeYT
    @GomzeYT 5 лет назад

    when i'm setting the width attribute my height also gets increased.
    is there a way so solve this? setting the height does nothing..

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      You have to increase the animations width and then make it fit in the box. The animation draws like an image, it has a fixed ratio so you need the box it's in to either match the ratio or it will grow the match your defined fit and crop the horizontal or the vertical axis. So width and height must have the same ratio as your artboard in flare otherwise you'll get cropping

  • @yogeshparab7852
    @yogeshparab7852 4 года назад

    i made one for my app, but the animation doest seem to be responsive, when the screen size is bigger than sidebar, it leaves white spaces, please help

    • @yogeshparab7852
      @yogeshparab7852 4 года назад

      oh! i did find your comment about artboard ratio and sized box, and fixed the issue, i need a a small help, how do i declare a bool value which will tell me whether the drawer is open or not?

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

      nice! Well done. these animations are cool to add.

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

      You do that simply in code. You can actully just check if the last played animation matches the animation name for the animation that opens the drawer.

  • @ansh6848
    @ansh6848 4 года назад +1

    Can u tell me the same for Android Java

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

      I can. With Flutter you don't have to write it differently for any platform. It'll run the same on both. And if you mean I must make a tutorial with the exact same thing for Android, then that won't happen. I don't re-write the same code for a different platform. That's why I'm using flutter. Dart is very similar to Java so you should be able to easily port this code over if you want it to only run on Android

  • @casul-4891
    @casul-4891 3 года назад

    Can you make the list box animation ?

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

      hey, I don't know what you're asking

  • @yunusemrealpak6118
    @yunusemrealpak6118 5 лет назад

    That's great. I should learn animations in flutter. How do you think I should follow steps? (from beginner to advanced)

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      The tutorial you're commenting on is using Flare for animations in Flutter. I find it easier for advance animations. But if you're just starting out just read the docs on AnimatedContainer in the flutter docs and that should get you on your way.
      Then go over to fireship.io and watch the Radial Menu video using Flutter. That should give you an indication of how to use the Tweens with the animation controller in Flutter. And after that just practice. Go to uimovement.com and try to replicate all the animations you see there.
      Then come back to this video and see how to integrate Flare to make the animations even easier.

    • @yunusemrealpak6118
      @yunusemrealpak6118 5 лет назад +1

      @@FilledStacks Thank you. I'll start your advice. How long does it take approximately?

    • @FilledStacks
      @FilledStacks  5 лет назад

      To do what?
      I learned flare and animations in flutter when i made my first tutorial for animations from Flare in Flutter. Took me a few minutes to learn Flare and then another few to integrate in Flutter.
      I knew how to animate in general using key frames from my game development days so i just had to learn the flare tool.

    • @yunusemrealpak6118
      @yunusemrealpak6118 5 лет назад

      @@FilledStacks Sorry, I didn't ask the question correctly. I would ask how long it will take to learn animations from zero to advanced. Building a plan on time motivates me. Of course, I assume to work hard.

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      @@yunusemrealpak6118 Aaaah I see. Well it all depends what kind of animations. To grasp the idea of how animations work shouldn't take to long. You'd just have to learn the concept of frames and the idea of interpolating between them. So you can start with learning about Frames from Animation only videos. Once you grasp that idea the tools you use to build animations become easier to understand as well as doing animations in code.
      I wouldn't be able to give you an example of how long it would take since I've been using frames on paper to make little animations since I was a kid. I'm gonna give you a rough idea and say the concept of key frames and interpolation shouldn't take longer than a week if you're reading and studying it with all the free time you have.
      Then learning a tool like Flare should be a bit easier and there are tons of beginner videos out there.
      After that part you'll have to read up on Animation basics, and how to make it feel real. There's 12 rules to that and only some of them applies to animations in UI. And the most important part of it all will be when to apply it, and perfecting the small details which comes only with practice. I'd say you can get up to a good speed for basic animations for Mobile App UI in less than 1-2months depending on how fast you learn.
      Character animation and things like that take years, and I have almost zero experience in that. That's an entirely different craft on it's own. But mobile animations are straight forward. Provide context and feedback whenever the user performs or is expected to perform an "important" action.
      I hope that helps. It's a good thing to know to get some diversity as a coder.

  • @MsPhanousone
    @MsPhanousone 4 года назад

    thx q

  • @rajdave9862
    @rajdave9862 5 лет назад

    OMnS
    Can you please 🙏 🙏 🙏 tell me from where you learn this flutter and animation

    • @FilledStacks
      @FilledStacks  5 лет назад +2

      Check the ScopedModel video where you asked the same question 🙏🙏🙏

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

    can i make these three be a button bread and the other one when they appers if i can how ?

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

      i think you're asking if you can make the animations tappable? if so then yes, I show that in my part one of the complex animations.

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

      @@FilledStacks yes i see the complex animation but in complex animation you use flare actor and Here you are about using pan flare actor ? these reason i never got it

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

      @@AlwaysMore Pan Flare actor moves the animation forward when you pan over it since we want it to do that. You don't have to use it if you don't want the animation to move as you swipe over it.

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

      Ok My question can i mix them together pan flare actor and flare actor cuse when i pan my animation it appers after that i wanna make it tappable ?

  • @HashemGameDev
    @HashemGameDev 4 года назад

    Hi thare Dane , hope you doing fine
    i added this code to the final code we reached at the end of the video
    RelativeActiveArea(
    guardComingFrom: ['close'],
    area: Rect.fromLTWH(0, 0, 1.0, 0.20),
    debugArea: true,
    onAreaTapped: () {
    print('Top pressed');
    }),
    RelativeActiveArea(
    guardComingFrom: ['close'],
    area: Rect.fromLTWH(0, 0.22, 1.0, 0.18),
    debugArea: true,
    onAreaTapped: () {
    print('Mid pressed');
    }),
    RelativeActiveArea(
    guardComingFrom: ['close'],
    area: Rect.fromLTWH(0, 0.41, 1.0, 0.18),
    debugArea: true,
    onAreaTapped: () {
    print('Bottom pressed');
    }),
    after i added it , the active areas werent guarded from close and still can press them after closing the menu
    and as soon as i press any of the added active areas , i cant close or open the side bar any more
    any help would be appreciated

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

      Hi Ahmed, thanks for reaching out. I don't have a project or the time to do a review on that code for you. You'll have to debug yourself. Clone the repo locally and reference it from your project then set break points to see why it's happening.

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

    sir plz want some suggestion from you about animations in flutter plzz can you please share your insta

  • @andreygritsay762
    @andreygritsay762 4 года назад

    Though the tutorial is really detailed it is too fast and mechanical

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

      Exactly how I intend it to be :) Slow tutorials make me lose my mind. I keep skipping forward then realised its too far then close the video down. I aim to make sure I pack a dense tutorial into every one i do. i'd like to see it adopted more to avoid 48 hour courses than can probably be taught in 3-4 hours.

    • @andreygritsay762
      @andreygritsay762 4 года назад

      @@FilledStacks Well, I thought so. But, I think you should understand that other people are not like you and many prefer more gradual approach when they want to learn something

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

      @@andreygritsay762 I completely understand that. I'm lucky enough to know that the core audience i'm trying to reach does appreciate this style because a lot of devs that already know how to code are looking for a quick video to get the idea of an implementation and then turn it off. I cater toward those devs. Devs that have experience in programming in general but not with flutter. So some things i don't have to explain which I'm happy about. I already struggle to produce a 20 minute video so the more compact I can make it the better. it takes me about 24 hours to make 1 video (working hours). Two full working days with the last 1 on a Sunday. I'm actually aiming to make it more compact so I can deliver more in a video.

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

      @@andreygritsay762 That way I might be able to get a sunday or two back and make the video in 1 day.