From b862f4f1745e250ff785856aca4485295ac35d27 Mon Sep 17 00:00:00 2001 From: Fabian Geiselhart Date: Fri, 1 May 2020 14:38:58 +0200 Subject: [PATCH] example/kitchen: Use the button passed to iconAndTextButton.Layout The global iconTextButton variable was used instead of the passed button. Signed-off-by: Fabian Geiselhart --- example/kitchen/kitchen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/kitchen/kitchen.go b/example/kitchen/kitchen.go index 5c972277..7143fda2 100644 --- a/example/kitchen/kitchen.go +++ b/example/kitchen/kitchen.go @@ -145,7 +145,7 @@ var ( ) func (b iconAndTextButton) Layout(gtx *layout.Context, button *widget.Button, icon *material.Icon, word string) { - b.theme.ButtonLayout().Layout(gtx, iconTextButton, func() { + b.theme.ButtonLayout().Layout(gtx, button, func() { iconAndLabel := layout.Flex{Axis: layout.Horizontal, Alignment: layout.Middle} textIconSpacer := unit.Dp(5)