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/example
go 1.13
require (
gioui.org v0.0.0-20200607143106-f710bdf8e8f1
gioui.org v0.0.0-20200608081650-cc5f8fcffe5e
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