Flutter: Is there a way to display multi bulleted list?
3,399
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:
- Use a
Column
orListView
for the list of items - Use
Row
s to position the widgets of a single list item - Use a
Text
orIcon
widget to display bullets or numbers - Use a
Text
widget to display the item text (wrapped byExpanded
widget) - Use
SizedBox(width: ...)
to add margins, paddings and indentation
Comments
-
nypogi over 1 year
How do you display a list like this in flutter?
Like for numbers no indentions, for "*" 1 indention, "o" 2 indentions and so on.
-
Constantin N. over 5 yearsDo you have the same model for item 1, 2,3....?
-
-
nypogi over 5 yearsThank you boformer! I'll try all of your suggestions. Thanks!
-
nypogi over 5 yearsHi boformer! This is what I've been looking for. Just an additional, is there any way to change the "bullet" character in every level of the list because in all level it's just using the same "bullet" character? Thanks!
-
boformer over 5 yearsI guess you went with markdown. Take a look at the source code of the library.
-
nypogi over 5 yearsHello boformer. Yup. I used markdown. Okay. I'll take a look at the source code. Thank you very much!