I want to make a List of Block where each Block contains some texts and Gauge in it. However, after reading the API doc, I found ListItem only supports texts in it, not Block or other complicated objects.
The reason why I want to use List is the number of items is up to user and the feature to scrolling the List with managed ListState fits my usecase.
Is it impossible to make a List of Block in ratatui?
For that you can use tui-widgets-list it implements a List that accepts Widget
I use it on one of my projects manga-tui and is perfect for your use case
Hi @josueBarretogit
I read your code and found PagesItem is a pair of Paragraph and Throbber (this must be a stateful widget) and list of it is passed to tui_widget_list::List.
This is what I am looking for. Thank you.
1 Like
Btw, manga-tui is wrongly linked. You should fix it.