thank you for the detailed teaching I was searching for some widget that did the same and I had explored the hero tag but was not able to apply it properly, thank you 🙏
Love the idea of using PageRouteBuilder to add a time element to hero's animation transition! Any thoughts if there's a way 'flexible' could have been used to space each GestureDetector's Card? Or would it cause issues with stack/positioned code? Also, would love to hear your thoughts on the animation ui from the 'Implementing complex UI with Flutter - Marcin Szałek | Flutter Europe" video!
I always wanted to slow down the Hero animation and the PageRouteBuilder is definitely a great choice. In the example, the ListView.builder itemExtent is responsible for the height of each Card containing the Stack to layout the child widgets. I personally like to use a stack with positioned widgets, but if you prefer to use other combinations like Columns/Rows and Flex that is fine too. Marcin's presentation 'Implementing complex UI' is excellent, I would recommend it to anyone interested in creating animations.
class Details extends StatefulWidget { final HeroType heroType; for what purpose (final HeroType heroType; ) is used? and how HeroType can be used as datatype for herotype....
The HeroType class is passed to the Details page, which contains the data passed from the home page. The HeroType class contains the title, subTitle, image and the materialColor values. Instead of passing each value in a separate variable, all of them are passed togehter in the HeroType class (custom object).
Thank you for this video! I have a question: How do you position widgets if the height of some of the ones above are variable? Such as the title. Let's say the title can be multiple lines. How would you know where to position the subtitle? Same thing with the image. If the image can be different sizes, the position of the title will depend on that. Then the position of the subtitle will depend on the height of both the image and title. And the container's height depends on all of those. So is there a solution to this? Thank you in advance (I'm new to Flutter)!
I would need to see a little more of your code, but the HeroType class is looking for a MaterialColor to be used and not a Color. Please go ahead and download the sample code at github.com/JediPixels/page_hero and you can see how I am using it.
i got another error :( . Exception caught by image resource service Unable to load asset: assets/images/ Actually i used different JPG images. Can you say what is the mistake?
Loved the use of a Stack to handle multiple Hero actions in the same transition.
The Stack is a great widget...
Hey Mr you're a Master. Thank you a lot for sharing your knowledge.
Thank you so much, I appreciate it.
Great tutorial! Thank you very much for showing differences between default and custom widget behavior
Thanks, I appreciate it.
Love the detailed explanations. Keep up the awesome work buddy!
Thanks a ton!
Such a wonderful Tutorial,You have given.
Thanks a lot.
Thanks, I appreciate it.
Great! Thanks
Thank you...
thank you for the detailed teaching I was searching for some widget that did the same and I had explored the hero tag but was not able to apply it properly, thank you 🙏
You're very welcome!
Ty broooo Such a wonderful
Thanks, I appreciate it.
The atual hero here is you. Thanks a lot :)
Thank you for the kind comment.
Nice. Keep going.
I appreciate it.
Thanks you sir 🖤
Thank you for watching.
Thanks 😊
Thank you.
Love the idea of using PageRouteBuilder to add a time element to hero's animation transition!
Any thoughts if there's a way 'flexible' could have been used to space each GestureDetector's Card? Or would it cause issues with stack/positioned code?
Also, would love to hear your thoughts on the animation ui from the 'Implementing complex UI with Flutter - Marcin Szałek | Flutter Europe" video!
I always wanted to slow down the Hero animation and the PageRouteBuilder is definitely a great choice.
In the example, the ListView.builder itemExtent is responsible for the height of each Card containing the Stack to layout the child widgets. I personally like to use a stack with positioned widgets, but if you prefer to use other combinations like Columns/Rows and Flex that is fine too.
Marcin's presentation 'Implementing complex UI' is excellent, I would recommend it to anyone interested in creating animations.
class Details extends StatefulWidget {
final HeroType heroType;
for what purpose (final HeroType heroType; ) is used? and how HeroType can be used as datatype for herotype....
The HeroType class is passed to the Details page, which contains the data passed from the home page. The HeroType class contains the title, subTitle, image and the materialColor values. Instead of passing each value in a separate variable, all of them are passed togehter in the HeroType class (custom object).
@@JediPixels thanku :p
Thank you for this video! I have a question: How do you position widgets if the height of some of the ones above are variable? Such as the title. Let's say the title can be multiple lines. How would you know where to position the subtitle? Same thing with the image. If the image can be different sizes, the position of the title will depend on that. Then the position of the subtitle will depend on the height of both the image and title. And the container's height depends on all of those. So is there a solution to this? Thank you in advance (I'm new to Flutter)!
Jumping from Screen A to Screen B is slow and nice but on pressing back from Screen B the animation is too fast..
Thanks for the comment.
i got a error 'type 'Color' is not a subtype of type 'MaterialColor'. I couldnot rectify this error.Can you say what is the mistake?
I would need to see a little more of your code, but the HeroType class is looking for a MaterialColor to be used and not a Color. Please go ahead and download the sample code at github.com/JediPixels/page_hero and you can see how I am using it.
@@JediPixels Yes done,Thanks a lot :)
i got another error :( . Exception caught by image resource service Unable to load asset: assets/images/
Actually i used different JPG images.
Can you say what is the mistake?
Recommended Playback Speed 1.5X
Thank you for the feedback.