diff --git a/example/go.mod b/example/go.mod index 0e222314..3780a7e8 100644 --- a/example/go.mod +++ b/example/go.mod @@ -3,7 +3,7 @@ module gioui.org/example go 1.13 require ( - gioui.org v0.0.0-20200708141644-96da6945a7e9 + gioui.org v0.0.0-20200708205258-692d6ab2219f github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72 github.com/google/go-github/v24 v24.0.1 diff --git a/example/go.sum b/example/go.sum index 7d413312..2f7d9f2e 100644 --- a/example/go.sum +++ b/example/go.sum @@ -1,7 +1,7 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -gioui.org v0.0.0-20200708141644-96da6945a7e9 h1:n5XVtmfA/TRbsLMMfk+sRnMgfZYYOwEnlXzWzIwELUI= -gioui.org v0.0.0-20200708141644-96da6945a7e9/go.mod h1:jiUwifN9cRl/zmco43aAqh0aV+s9GbhG13KcD+gEpkU= +gioui.org v0.0.0-20200708205258-692d6ab2219f h1:1lTz/aZ8HGpuCfdjbphPerT7WNV8RPDxZAaPQAvC0rI= +gioui.org v0.0.0-20200708205258-692d6ab2219f/go.mod h1:jiUwifN9cRl/zmco43aAqh0aV+s9GbhG13KcD+gEpkU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 h1:SCYMcCJ89LjRGwEa0tRluNRiMjZHalQZrVrvTbPh+qw= github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7/go.mod h1:482civXOzJJCPzJ4ZOX/pwvXBWSnzD4OKMdH4ClKGbk= diff --git a/example/kitchen/kitchen.go b/example/kitchen/kitchen.go index af0b4973..cf5730c6 100644 --- a/example/kitchen/kitchen.go +++ b/example/kitchen/kitchen.go @@ -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 {