I have Dismissible with ExpansionTile as a child. Is there any way to make Dismissible be flexible in height? For now it has static height, but should have child's height
Within a Column (for flexible height), you can use a Flexible, with fit:FlexFit.loose, This will size to the child.
Related
I have a ListView.builder that contains Containers with blurred shadows. By default, the ListView clips the edges, which means my shadows get clipped. If I remove the clip on the Listview by using clipBehavior: Clip.none, the Listview then scrolls items vertically beyond the bounds of the ListView.
Is there a way that I can clip the ListView only vertically, leaving the shadows intact horizontally?
I have a flutter carousel slider with 2 Containers. There is no width or height set to the Containers. So, the width and height of the container are fit to content.
How can I get the height of that container and set it to the carousel slider's height? Because if not we give it height as a hardcoded double, the container is overflowed in other smartphones.
How can I add some gradient to a title only when SliverAppBar is expanded ?
How can i do vertical listview with different height of items. I have listview.builder in listview.builder. My inner listview have different count of items. So i need Auto Vertical Height in ListView. Could you help me?
enter image description here
How to prevent Textfield scrolling when text is longer then screen height the problem is that I have CustomScrollView inside of it horizontal ListView and textfield and I want that when you scroll text inside textfield it would scroll with ListView now it scrolls just text and leaves ListView pinned to the place, but if you scroll while tapping outside textfield it works as expected.
Seems that nested scrollview would solve such problem but no idea how to implement it with two child widgets
You can use a NestedScrollView and a controller and then ListView will work.