Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
# Update the screen to show the new `posts`
fun apply_update(posts: Array[Post])
do
# Update the screen to show the new `posts`
fun apply_update(posts: Array[Post])
do
- layout.remove list_posts
- list_posts = new ListLayout(parent=layout)
for post in posts do
var line = new VerticalLayout(parent=list_posts)
var author = new LabelAuthor(parent=line, text="@"+post.user)
for post in posts do
var line = new VerticalLayout(parent=list_posts)
var author = new LabelAuthor(parent=line, text="@"+post.user)