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 <me@f4814n.de>
This commit is contained in:
Fabian Geiselhart
2020-05-01 14:38:58 +02:00
committed by Elias Naur
parent 0e70fbc126
commit b862f4f174
+1 -1
View File
@@ -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)