How to return a combination of SliverAppBar and SliverList in flutter - flutter

I have an app that has a cart screen, in this screen I want to divide the ordered products according to their respective factories, so I want to use SliverAppBars and SliverLists.
Now what I really need is to make a custom widget that can returns a SliverAppBar and a SliverList together so that I build this widget and get multiple SliverAppBars and SliverLists.
Anyone knows how to do that?

I found a package on pub.dev that can do that, it's called sliver_tools and here's the link to it here

Related

Create Vertical List in Flutter

I want to create this type of listview using flutter.
https://dribbble.com/shots/6872462-Food-ordering-app-Animate
You can find out more by clicking on this link. But I don't know how to create this type of list. I mean, you can see in the GIF that the list is indexed based.
A fixed indexed item container is colored.
How can I achieve it?
Flutter provides you with a widget very similar to the result you want to achieve called NavigationRail.
You will not have the animation by default, but you can maybe search in the source code of this widget how to create a custom widget that will implement animations.

Now which widgets are right now shown in List

Hello I have a ListView with different Widgets of different height. Now I want to know which of those Widgets are at the moment visible in the ListView. Does anyone has an idea how to do it. I can't use to scroll_to_widget package because it interferes other implementations.
Try using https://pub.dev/packages/visibility_detector maybe you can create a separate list and store true according to index, based on their visibility?

How to make slide in transition for ListTile in listview in Flutter

I am making an app whose structure is very simple.
A ListView with Listtiles in it.
I want to add animation such that when the screen is opened the listtiles slide in.
Flutter provides a AnimatedList Widget.
Perhaps this native widget will give you the desired output

Is there any deafult widget like in image or if I need to do it how could that be implemented?

So I am not looking for filters but I am looking for scroll widget. I have tried generating listview items abd getting position of listview to give items ratio but I wasn't able to get any functionality while in certain index position. Any help would be helpfull. Naming of the widget or special widgets that can make me do this etc.
You can use ListView or ListView.builder to do that, but with circle-shaped widgets as the children.
You can check out this tutorial to do the horizontal list. And you can check out this StackOverflow question, to create a circle button. Or instead of a button, you want to use the CircleAvatar (to add an image in it), you can check out this official doc.

flutter: how update one item in gridview?

I use GridView in my Flutter's app. Size my GridView is 30x4(with different widgets).
I need to update one widget in my gridView. I have two solutions and I need to choose the best.
Update all GridView. It is easy but I think this is not optimal (rebuild the entire grid for one change).
Update one widget. it is more complicated. but I know how to do it. This is a similar example.
what do you advise?