ui: basic map scroller

This commit is contained in:
Ilia Denisov
2026-03-06 23:29:06 +02:00
committed by GitHub
parent 29d188969b
commit 1de621c743
68 changed files with 9861 additions and 118 deletions
+6 -10
View File
@@ -3,8 +3,6 @@ package client
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
type client struct {
@@ -15,15 +13,13 @@ type client struct {
func NewClient() *client {
c := &client{}
c.app = app.New()
c.window = c.app.NewWindow("Hello")
c.window = c.app.NewWindow("Galaxy+")
hello := widget.NewLabel("Hello Fyne!")
c.window.SetContent(container.NewVBox(
hello,
widget.NewButton("Hi!", func() {
hello.SetText("Welcome :)")
}),
))
// https://github.com/fyne-io/fyne/issues/418 - interactive raster
// https://github.com/fyne-io/fyne/issues/224 - resize
editor := NewEditor()
editor.BuildUI(c.window)
return c
}