example/kitchen: clean up

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-22 08:42:59 +02:00
parent a35a2f5eb1
commit 2884604521
+1 -6
View File
@@ -22,6 +22,7 @@ import (
)
func main() {
editor.SetText(longText)
ic, err := material.NewIcon(icons.ContentAdd)
if err != nil {
log.Fatal(err)
@@ -71,13 +72,7 @@ var (
icon *material.Icon
)
func init() {
editor.SetText(longText)
}
func kitchen(gtx *layout.Context, th *material.Theme) {
gtx.Constraints.Width.Min = 0
gtx.Constraints.Height.Min = 0
widgets := []func(){
func() {
th.H3(topLabel).Layout(gtx)