How do you display a list like this in flutter?
Like for numbers no indentions, for "*" 1 indention, "o" 2 indentions and so on.
There is no such mechanic built into Flutter. I'm not sure how many lists you want to display, how long the lists can be and where the data is coming from.
flutter_markdown is a good solution if you also need paragraphs and other text styles. Just supply your list in markdown format to the widget.
You can also build an indented list with Flutter core widgets:
Column
or ListView
for the list of itemsRow
s to position the widgets of a single list itemText
or Icon
widget to display bullets or numbersText
widget to display the item text (wrapped by Expanded
widget)SizedBox(width: ...)
to add margins, paddings and indentation