February 2019
Intermediate to advanced
450 pages
11h 59m
English
To get started, we will implement the layout. The easiest way to set this up for the application we designed is to use horizontal and vertical flow layouts. Before creating the layout, we should define those widgets that will be included. For now these are represented by the placeholders created in makeBar() and makeList()—each of which simply creates a label to show the purpose. We also want to ensure that the items are padded according to our design. To do this with Shiny, we use widget.NewPadder() and a defined unit, padSize. We also define a spaceSize used later for the central padding:
package mainimport ( "golang.org/x/exp/shiny/driver" "golang.org/x/exp/shiny/screen" "golang.org/x/exp/shiny/unit" "golang.org/x/exp/shiny/widget" ...Read now
Unlock full access