Both Expanded widget and Flexible widget are used in Row, column to expand and fill the available space
But Both seem to be the same, But Let's Learn the difference
🔹Expanded Widget expands a child of a Row, Column, or Flex so that the child fills the available space.
The expanded widget takes the entire available space.
By default, it has a property of
fit: FlexFit.tight
Which forces to fill the available space and you can't change the property
🔹Flexible Widget widget controls how a child of a Row, Column, or Flex flexes.
Flexible Widget takes only the needed space
By default, it has the property of
fit: FlexFit.loose
which allows to fill only the needed space
In Flexible widget, You also have the option to fill all the available space by changing the property to
fit: FlexFit.tight
and that makes same as Expanded widget
Using a Flexible widget gives a child of a Row, Column, or Flex the flexibility to expand to fill the available space in the main axis (e.g., horizontally for a Row or vertically for a Column), but, unlike Expanded, Flexible does not require the child to fill the available space.
Before Starting The Thread I want to Request you not to contribute to these Programs just for the sake of Swags or price money
Contribute to these for learning new things and for contributing to the society
Let's GO!!
1. GSoC: Google Summer of Code program is a program started by Google and has completed 16 years. It is a program that aims to promote open-source software development among university students. summerofcode.withgoogle.com
🔹Scaffold
-The Scaffold Provides the basic material layout of any app
-It contains properties that can provide an AppBar, FloatingActionButton, body Structure and a backgroundColor property
🔹Column
-The column displays its multiple children in a vertical array
-A column is not scrollable and has multiple basic axis alignment properties that help to position its children relevantly