To ensure widgets resize according to the parent's dimensions in Flutter, use the ______ widget.

  • Adaptive
  • Expanded
  • Flexible
  • Responsive
In Flutter, the Flexible widget is used to ensure that its child widgets resize according to the available space in the parent widget. It's particularly useful in situations where you want a widget to take up a proportional amount of space relative to its siblings. By specifying the flex property within the Flexible widget, you can control the ratio in which space is distributed among children, offering flexibility in designing responsive user interfaces.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *