example/kitchen: add a button that is {dis,en}abled by the switch

This adds a simple button that defaults to being disabled, but can
be enabled by toggling the state of the existing Switch widget.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2020-06-02 16:26:22 -04:00
committed by Elias Naur
parent cc5f8fcffe
commit bda315e687
5 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/cmd
go 1.13
require (
gioui.org v0.0.0-20200607143106-f710bdf8e8f1
gioui.org v0.0.0-20200608081650-cc5f8fcffe5e
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4
github.com/chromedp/chromedp v0.5.2
golang.org/x/image v0.0.0-20190802002840-cff245a6509b