I can't make Gtk Picture Widget currect size - gtk

[the picture widget fills a strange space][1]
[1]: https://i.stack.imgur.com/Hktgz.png
I've set both halign and valign for every widget to Gtk.Align.START, but while the label widget works okay, the picture widget still fills the window until there is no enough space.
So I put a frame out of the picture, but nothing changes.
What's wrong with it?

Related

Find height of widget before layout

Is there any method/function which takes widget as input and returns its numerical height without building it.
Or even if it builds the widget but widget is not shown then it's fine.
There is this post:
How to get height of a Widget?
I can't seem to figure out how it works, so any example which still works in latest flutter would be very helpful.
My current condtion is described in flutter : Create scrollable organic gridview with dynamic height
I've solved most of it only dynamic height problem remains.

How to prevent Expanded to shrink GestureDetector's tap area?

I've been trying to make Bookmark button's onTap work because it was working only sometimes.
I'm using the Expanded widget in the Bookmark button but when I toggle debug point on, I saw that its area is shrunk and that's why taps are not working. I give this widget size and added HitTestBehavior.translucent on GestureDetector but no luck.
Any idea how I can fit this button without losing its tap area?

Why am I getting a bottom overflowed when keyboard is on?

hi i want someone to help me for this problem in flutter ,I will put the picture to understand
enter image description here
thanks
Wrap your page in a Listview() widget or a Single ChildScrollview
This means that your widget needs space more than the space that is available. You can either change the size of the widget, or make your page/widget scrollable, which will give it more vertical space. To do that, wrap your widget/page with a SingleChildScrollView widget.

How to fill the Screen with ListView/GridView?

enter image description here
how to fill the Screen?
You can use Expanded instead of Container widget to fill the screen with the ListView

GWT Widget that grow

I need to create a GWT Custom Widget. This widget will contain a panel and that widget must grow in height based on the amount of text in the panel
Edit:
for e.g. let's say a widget will hold a forum post. What happens is that there is a panel inside the widget that hold the forum post. The more text text, the greater the panel??
Any idea??
If you put a Label in a FlowPanel, the whole thing will size itself to contain whatever text you put in the Label. Most GWT widgets will do that as long as you don't set an explicit size.
Once you start setting the size (e.g. "height: 100px") yourself, then you have to start re-calculating the size yourself. So... don't set the size yourself! :)