mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
example: add Loader example
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -325,6 +325,14 @@ func kitchen(gtx layout.Context, th *material.Theme) layout.Dimensions {
|
||||
return btn.Layout(gtx)
|
||||
})
|
||||
}),
|
||||
layout.Rigid(func(gtx C) D {
|
||||
return layout.Inset{Left: unit.Dp(16)}.Layout(gtx, func(gtx C) D {
|
||||
if !swtch.Value {
|
||||
return D{}
|
||||
}
|
||||
return material.Loader(th).Layout(gtx)
|
||||
})
|
||||
}),
|
||||
)
|
||||
},
|
||||
func(gtx C) D {
|
||||
|
||||
Reference in New Issue
Block a user