ariedov / flutter_snaplist

A small library for creating snapping lists.
MIT License
452 stars 53 forks source link

How to use it #14

Open aloklearning opened 5 years ago

aloklearning commented 5 years ago

I want to use it in my flutter project. I know how to import it, but the main question is that if I have widget which has an image in it, I want that to be shown in the view, but don't know how to implement it. I just want the view same the horizontal view of the example. If you could show me the code of your example, I will get it somehow. But right now I'm clueless on how to use it in my project. Any help would be appreciated.

ariedov commented 5 years ago

Here you can find an example for vertical/horizontal lists: https://github.com/ariedov/flutter_snaplist/tree/master/example

You could share some more detail about your particular case and I'll try to help.

aloklearning commented 5 years ago

Hey, thanks for the input. I have noticed one thing, the link which you have provided makes the ordinary horizontal listview like the gallery, but I need a catch that how to make the slider look like the one in the main repo example. You can compare the two from the link you have provided and the example which is there in the main repo. The image in the middle is more protruding and in the example which you have provided has the image which is in the same aura of the other images. I want the current image to come out like in the example otherwise I can use the same horizontal listview. Thanks for all the help, but I hope my words will make a little sense to you.