ListBody vs( column and row) ??

699 views
Skip to first unread message

hechmi dammak

unread,
Aug 21, 2019, 8:20:33 AM8/21/19
to Flutter Development (flutter-dev)
ListBody ,column ,row what is the diffrence couldn't find anything in google about it

Felix

unread,
Aug 21, 2019, 3:09:37 PM8/21/19
to Flutter Development (flutter-dev)
The official docs is pretty clear on what these widgets do.

eg:

A widget that arranges its children sequentially along a given axis, forcing them to the dimension of the parent in the other axis.

This widget is rarely used directly. Instead, consider using ListView, which combines a similar layout algorithm with scrolling behavior, or Column, which gives you more flexible control over the layout of a vertical set of boxes.


https://api.flutter.dev/flutter/widgets/Column-class.html

Column class: A widget that displays its children in a vertical array.


https://api.flutter.dev/flutter/widgets/Row-class.html

Row class: A widget that displays its children in a horizontal array.

The best is decide on what you really want to do and try these widget to get an idea of what how they display your content on various screen sizes

Message has been deleted

Felix

unread,
Aug 22, 2019, 12:15:28 AM8/22/19
to Flutter Development (flutter-dev)
Reply all
Reply to author
Forward
0 new messages