Flutter ListWheelScrollView - position the list at top - flutter

I'm using ListWheelScrollview to display a list of items. By default, the first item is shown at the center of the screen. Is there a way to move the list to the top of the screen? I do not see any property in the ListWheelScrollView class to change the position of the widget. I have tried setting Positioned and Align widgets as the list view's parent but that didn't help. Any help is appreciated. Thanks

Related

How to center and manipulate the size of a ListView?

I can't change the ListView's position, I would like it to be more in the center. I'll put it on another screen, this is just a test.
I want to put multiple item names inside a ListView on the same screen without overflowing the screen space.
I've read your questions, and based on what I understood.
You want to make your ListView in the middle of the screen Right!!
To do that, you simply have to wrap your Listview in a Center Widget as a child of your container (Pretty easy :) )

How to create horizontal list view with faded image by Flutter?

I need a horizontal list view in the flutter , that according to the image below, the first item is empty and the image is visible in the background, when the second item starts scrolling, the background image disappears and when the item returns to its place , The image also returns to the original state.
You will need some code here.
The vertical listview you can get with the SingleChildScroolView changing the axis to vertical and placing a Column inside.
To the empty space on last item, place a Sizedbox as last widget inside Column.
Place a ScrollController on the SingleChildScroolView with a listener, and when the controller reach the maximum just fade in the background image.
Its not hard, just need some code.
Finally, I published Package (flutter_faded_list) for designing this UI on the pub.dev website.

Flutter: A horizontal ListView that selects items like a ListWheelScrollView

I would like to create a scrolling selection widget in Flutter that looks like a horizontal ListView but acts much like a ListWheelScrollView in that it uses FixedExtentScrollController and emits a selection event (callback) for the child scrolled into the center of the list. Especially the list should only allow scrolling by multiples of the size of its children (which are all the same size) and keep one child at the center of the view, even if there are no other children to the right or left.
Is there anything like this out there or do I have to roll my own?
I discovered the Carousel widget from getwidget which can be configured to meet my requirements.

Flutter scrollable list inside overlay

My question is similar to this How to make my page scrollable when i show overlay element, that have too many items in flutter? but it has no answers so I'll try to ask as well:
I have an Overlay showing a list of questions using ListView. The list of questions is long and I need to enable scrolling inside the Overlay.
Now it's static and part of it disappears at the bottom of the mobile device.
Why is not just scrollable (since the list inside the Overlay is inside a ListView) and is there a way to make it scrollable?
Thanks in advance for any help!
UPDATE (SOLVED) :
The problem was that the ListView widget is inside a Positioned widget and the top, left, bottom and width values (in my case) need to be set in order for the content to be scrollable.
The problem was that the ListView widget is inside a Positioned widget and the top, left,bottom and width values (in my case) need to be set in order for the content to be scrollable.

android - Why does view.bringToFront() doenst work in custom Listview case?

I am making a custom listview, in that data is dynamically changing after sometime. this part and click event part of list and list's button is working fine.I have to show some specific row on the top according to text.
I am using view.bringToFront() for showing that row in front. It is not working. How can i do this?? I want if(StatusText.get(position).equalsIgnoreCase("chat request")) if i check this method then this row come to front as top row of the list.
How can I do this?
bringToFront() change the view's z order in the tree, so it's on top of other sibling views (pay attention: Z-order) In your case you should resort your data and call notifyDataChanged for your adapter
I think you can use relative layout with listview and list item layout.Make Listitem layout invisible.After calling that method just make the visiblity of that listitem layout to View.VISIBLE as you are using relative layout you can position the list item layout to top bottom center or anywer.