How to achieve the UI effect which swipe listview with a 'X' from gone to visible and accompany with the item? - android-listview

How to achieve the UI effect which swipe listview with a 'X' from gone to visible and accompany with the item?
I want to achieve a UI effect which when I swipe a listview item,there would be a 'X'follow it.What I use to achieve swipe listview is EnhancedListView.
What I want to achieve is like this:
At first,the listview will be like this:
When I swipe it:
Then the picture will be:
I wonder how to achieve the effect.As the listview I use now,there are two layers of the listview item that I can swipe to let the bottom layer shown.But it can hardly achieve the effect like that.
Thank you very much.

https://github.com/steelkiwi/ListView-Swipe-to-Delete this is probably what you're looking for..

Related

Flutter: how to build a Widget-List-List-Widget layout?

I would like to build something like this:
Container
Container
ListView (tappable items)
ListView items based on firstListView tapped item - it is hidden until something tapped in first list
Button stick to the bottom
ListViews are ruined whatever I am trying, expanded, flex, mediaquery etc...
Thanks in advance.
Not sure what you mean with the "stick to the bottom" part, but if I understand correctly, you may want to take a look at the ExpansionPanelList.
Don't worry, you can customize the header to be fully tappable and hide the arrow.

How can I create animated scrollable bottomsheet in Flutter?

I would like to create a scroll up bottomsheet something like this
Right now I am working with DraggableScrollableSheet widget. But I don't know how to add animation and that handle icon that changes when the sheet goes up or down.
You can use Solid bottom sheet package from here
also bottom_sheet_bar is similar like this.
In my flutter projects I use the following package for animated bottom sheets:
https://pub.dev/packages/modal_bottom_sheet

Paging by item Flutter

i would like to achieve pagination with flutter like this: every swipe gesture there i only one page swipped, and it is being centered in the screen. on the edges of the screen you can see parts of the next and previous items i.e the item is NOT THE SIZE OF THE SCREEN. this requirement is important. i can't set the item to be the size of the screen, also it should have padding between the items. for a better understanding i have a gif attached.
Thank you.
https://gfycat.com/soreheartfeltguernseycow
You can achieve the goal easily using PageView widget.
Ive found a class carousel_slider which is easily making that functionallity under the hood using PageView as suggested above.
For anyone who will need such behaviour as in the gif, see https://pub.dev/packages/carousel_slider

Stacked ListView in Flutter

I would like to have a horizontal ListView with items stacked on top of each other at both ends. There are the Stack and Positioned widgets to align items on top of each other, but I couldn't find an implementation which inherits the qualities of both ListView and Stack. The expected outcome should look something like this:
How do I accomplish that?
you probably looking for ListWheelScrollView check this:
ListWheelScrollView

How to animate the removal of a PageView.Builder item dynamically

Is it possible to animate the removal of an item in a horizontal PageView.Builder in flutter?
I know there's the AnimatedList but I have been trying to do it on a PageView.Builder as I need a PageView.Builder for my use-case.
I want to make it so once a user presses on an Item from the PageView the item gets removed with an animation. Not Dismissable, but on press.
I would really love if you could point me out to the correct documentation or example.
Unfortunately there is still not a proper way to do this. You can try combining SlideTransition with animateToPage method of the PageController. But it will not be ideal. It would be optimal if there was a AnimatedListView kind of version for the PageView. Or at least a good way to mimic it.