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.
Related
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 :) )
I am using a CustomScrollView and Slivers inside it and redendering the list using SliverChildBuilderDelegate. This works fine, but my requirement is to have a Fixed Container of height = height of screen/2 and inside that I want to render a list and and it can scroll as well, I am using CupertinoSliverNavigationBar [this cannot be replaced]. I am able to draw a Container and inside that I am able to show a list using Listview.builder, but the problem is I am unable to scroll the list, whenever I scroll it, it goes to top again, I want something Like, my CustomScrollView should be kept as it is, just I want to create a Scrollable Container of fixed height and the list inside that should scroll properly and CustomScrollView can also scroll, I have tried many widgets like Wrap, Rows, Columns, SingleChildScrollView, also tried NeverScrollPhysics() Behaviour for CustomScrollView but nothing is working out. Please Help!
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
I want to give a margin around the whole screen in Flutter. So I put my content inside a Column and put the Column inside a Container. So I gave a padding to the whole screen. But when a TextField is selected and the keyboard appears the bottom overflow. I can't give resizeToAvoidBottomPadding: false, because then the keyboard covers the TextField.
I can't use SingleChildScrollView or a ListView because then the placing of the children won't keep space between.
It seems the only option is to remove the Container and set a padding to each child of the Column.
Is there a better option for this ?
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.