Get child's height to carousel slider's height - Flutter - flutter

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.

Related

Flutter dynamic Dismissible height with ExpansionTile

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.

Auto Vertical Height in ListView.builder

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 can I align in Flutter an area at the bottom of screen only if the content above does fit in screen. If not, all content should be scrollable

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?

Making ImageView Depend on Image Size But not Fixed ImabeView

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.

get the height and width

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.