Preparing UI for dynamic postlist content

This commit is contained in:
Jarkko Toivanen 2024-09-27 01:50:01 +03:00
parent f5f8521642
commit a71cd4af96
Signed by: jt
GPG key ID: 9151B109B73ECAD5

View file

@ -13,11 +13,14 @@ func main() {
lipsum := widget.NewRichTextWithText(lipsumtxt)
lipsum.Wrapping = fyne.TextWrapWord
lipsumscroll := container.NewVScroll(lipsum)
postList := container.NewVBox()
win.SetContent(container.NewMax(
lipsumscroll,
win.SetContent(container.NewVScroll(
postList,
))
postList.Add(widget.NewLabel("1. Lorem Ipsum tittidittidii"))
postList.Add(widget.NewLabel("2. Ei hitsiläine, En odottanut tän toimivan!"))
postList.Add(lipsum)
win.ShowAndRun()
}