Smooth animated transition with valuelistenablebuilder - flutter

I have designed a simple dashboard menu using valuelistenablebuilder which basically changes based on the selected icon.
Here's an example of how it looks
Whenever i click one of the dashboard buttons (cards inside a gridview), it updates the listennablevalue, and thus it leads to a similar view but the number of buttons (and the content within the button) changes.
however, there is no transition or animation as the basic material pageroute given the builder is just rebuilding the view.
Is there a way to add a smooth transition using this listener?

Related

Flutter Hero with custom AnimationController or entirely custom overlay

Is it possible to implement a Hero Animation in flutter but instead of being controlled by Navigator, be controlled by a custom AnimationController.
This is for a use case needs to go inside another element rather than a new screen as is the case with Navigator.
Alternatively, is it possible to directly inject a widget into an overlay that is fixed permanently elsewhere on the screen preserving the state, logic and controllers of where it was initially declared.
Imagine I have content that changes on a page based on a certain user interaction but still should animate a transition of a sliver app bar as if a new screen has entered when it had not.
In laymen's terms, I want to declare a widget wherever I happen to declare it but not actually render there. IT should render instead in a targeted location but still maintain any state or controllers it obtained or inherited from the position in which it was actually declare.

Flutter Recreating the Hero Transition replacing Navigator with a custom Animator

Looking at the Flutter Hero Transition, it appears to move the tagged Widgets to an Overlay class that exists in all Navigator Widgets but sits above the main content in the stack.
If this is correct, it allows the Hero to widgets to still respond to the Route scope and its animators but exist above the actual route content. How is this actually done efficiently? Surely this involves taking an entire Widget and storing it in a state for the duration of the animation. That Widget still has to respond to intrinsic responses from its original position such as slivers responding to active scroll actions.
Recreating this could be done with state management but I wondered how the standard hero actually does this. It seems like Widgets are effectively duplicated and then conditionally rendered on the screen defaulting to the overlay during the route animation and swapping out the original widget with an Offstage or similar. Is this how it is done?
The reason for trying to understand it is the need to replicate this behaviour in situations where Navigator is not an effective use case for a transition taking place internally on a page. I built an accordion style navigator but still want a hero transition to take place on the AppBar / NavigationBar. I know that this could be done with Navigator but it doesn't suit the use case. I could also predefine the AppBar content for each internal navigator state of the accordion but that is a lot of additional code.

Dart/Flutter: change content of container on tab in ListView

I am currently trying to create something like a TabBar. I created a horizontal ListView which should work as the TabBar and I my goal is, that one row fills itself with a list that contains the cards for the Tab I clicked on and refreshes when I click on another one. Is there a way to do that? It should look like this:
Reference Picture
Did you look at Work with tabs, an introduction to TabBar, TabBarView and DefaultTabController?
You could also create it from scratch using a ListView with a Card wrapped in a GestureDetector or a ListTile, and detect taps on onTap, which would set the selected data and update state using setState.

Flutter Not able to achieve PageView like Swipeable Tabs inside Parent ListView

This is a Flutter Specific Query.
I Want to achieve the Layout Referenced in the Image above. Two Tabs
Below a Container.
The Tabs can be switched using Swipe Animation like that in a
Page View.
The Tabs Contain Dynamically Generated Widgets from Provider.
The Entire Page along with the Fixed Container must be
Scroll-able.
When Switching between the Tabs the fixed container should stay
in place and only tab Content(Column of Widgets) should swipe
left and right.
What I've Tried :
Using a Parent List View and Nesting the Fixed Container Child
and Using Tab Bar to switch the Widget using Animated Switcher and
Slide Animation. Here the Problem is i cannot swipe left and right
and create the Page View like Effect. I also tried Nesting Page-View
inside List-View but since the Page-View does not have a fixed height
( because the tab contents are dynamically generated ).
A few many more concepts i tried to tackle but the issue every time was
that the tab contents are not having a fixed height.
I really want to achieve this Layout and i want to know if there's any way.

Flutter custom page transition - animating old route

I want to create custom page transition animation in Flutter. I have two pages/routes:
List of radios page (LISTPAGE)
Radio detail page (DETAILPAGE)
Here is transition that I need to create.
Look only to 0:18 seconds.
As I know, Flutter enabled to use transitionBuilder inside PageRouteBuilder when pushing new route. But how can I animate widgets in LISTPAGE as part of transition to DETAILPAGE? Is it possible?
Flutter have only few transition widgets - ScaleTransition, SlideTransition, FadeTransition, ...
Is it even possible to create something like this?
How would you approach this design?