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.
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
I would like to have a screen in Flutter with 2 buttons that should always stay at the bottom screen, unless the height of the content above the buttons plus the height of the 2 buttons overflows the screen height, in which case I would like that all content should be scrollable. How can I achieve this?
I want to make a dynamic imageView which can depend on the image ratio inside(image's ratio different).
And the imageView width follow the screen width(or the tableView width), image's height is resize by the image inside.
My storyboard looks like that:
The imageView mode set Aspect Fit.
How can the image's width be the same with tableView(or screen width)?
And to resize both the height of the image and tableView ??(don't leave yellow margin)
Don't fix the height and width of imageView.
Using constraints just set the x, y position, it automatically becomes resizable according to image size.
I suggest you add a Y constraint, e.g. use the pin board to constraint the vertical spacing to top layout guide, and then use control drag to the view controller icon, to centre the imageView horizontally, then when you set the image for the imageView, it should automatically resize to the size that the image is as you won't have set any size or aspect ratio constraints. If you wanted, you could set a constraint to say you always want it to be an equal height from the table view, however, this could cause the image to look stretched if you do not set the aspect ratio.
Can I get the hight and width the page web when i enter the Url to the webview for android i need to get the width and hight to this page.
If WebView fits the HTML page in the view to avoid scrolling, then the width and the height of the view applies for the page as well.