Ask Your Question
3

Why does the text widget in flutter only display the most recent entry?

asked 2022-09-02 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-10-04 09:00:00 +0000

bukephalos gravatar image

The text widget in Flutter only displays the most recent entry because each time you call the widget to display the text, it replaces the previous content with the new content. If you want to display multiple texts, you need to use a List or a ListView widget to display them. Alternatively, you can concatenate the new text with the previous text and display it together in the widget.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-02 11:00:00 +0000

Seen: 19 times

Last updated: Oct 04 '22