The Expanded and Flexible widgets are both used to give a child widget the ability to take up remaining free space within a layout in Flutter. However, there are a few key differences between the two widgets:
Flex value: The Expanded widget automatically divides the remaining free space equally between all of its children, while the Flexible widget allows you to specify a flex value for each child, which determines how much of the remaining free space the child should take up.
Default behavior: The Expanded widget will always take up as much space as it can within the layout, while the Flexible widget will take up only as much space as it needs to fit its child, unless you specify a non-zero flex value.
Performance: The Expanded widget is generally more efficient and faster to lay out than the Flexible widget, because it does not need to calculate the flex values of its children.
----------------------------------
Expanded Widget and Flexible Widget in Flutter | Flutter Tutorials in Hindi | #75
• Expanded Widget and Fl...
Row Widget in Flutter | Flutter Tutorials in Hindi | #74
• Row Widget in Flutter ...
Column Widget in Flutter | Flutter Tutorials in Hindi | #73
• Column Widget in Flutt...
Gradient Property in Flutter | Flutter Tutorials in Hindi | #72
• Gradient Property in F...
Difference Between HTML and XHTML
• Difference Between HTM...
How do I use Hexadecimal Color Codes in Flutter | #72
• How do I use Hexadecim...
Container Widget in Flutter [Part 2] | Flutter Tutorials in Hindi | #71
• Container Widget in Fl...
----------------------------------
My RU-vid Gear:
Boya BYM1(Mic): amzn.to/3bvm69j
Redmi Note 7 Pro(Mic & Camera): amzn.to/3uRkVsb
MSI Motherboard: amzn.to/3fiQHYO
Intel i3 Processor: amzn.to/3w8TWbQ
Mouse: amzn.to/3yb8PMP
Keyboard: amzn.to/3bvmtkd
Wifi Adaptor: amzn.to/3fiQYuO
SSD: amzn.to/3w2w2Pa
Speakers: amzn.to/3w6pKhv
Instagram: / ahirlog
Facebook: / ahirlog
Twitter: / ahirlog
RU-vid: / ahirlog
#ahirlog #flutter #dart
Last Summer by Ikson: / ikson
Music promoted by Audio Library • Last Summer - Ikson (N...
31 май 2021