Preparing UI for dynamic postlist content
This commit is contained in:
parent
f5f8521642
commit
a71cd4af96
1 changed files with 6 additions and 3 deletions
9
main.go
9
main.go
|
@ -13,11 +13,14 @@ func main() {
|
||||||
|
|
||||||
lipsum := widget.NewRichTextWithText(lipsumtxt)
|
lipsum := widget.NewRichTextWithText(lipsumtxt)
|
||||||
lipsum.Wrapping = fyne.TextWrapWord
|
lipsum.Wrapping = fyne.TextWrapWord
|
||||||
lipsumscroll := container.NewVScroll(lipsum)
|
postList := container.NewVBox()
|
||||||
|
|
||||||
win.SetContent(container.NewMax(
|
win.SetContent(container.NewVScroll(
|
||||||
lipsumscroll,
|
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()
|
win.ShowAndRun()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue