expanded:=true// a field of the State; SetState changes itw,c:=float32(120),geom.Hex(0x8a8a8e)ifexpanded{w,c=220,geom.Hex(0x2f5fd0)}returnbasic.AnimatedContainer{Duration:250*time.Millisecond,Width:w,Height:48,Radius:24,Color:c}
moved:=true// a field of the Statevarleftfloat32=8ifmoved{left=160}returnbasic.SizedBox{Width:260,Height:80,Child:basic.Stack{Children:[]core.Widget{tile("",260,80),basic.AnimatedPositioned{Left:left,Top:16,Child:swatch("Moves",geom.Hex(0x2f5fd0))},}}}
page:=1// a field of the Statereturnbasic.AnimatedSwitcher{Duration:250*time.Millisecond,Transition:basic.SlideTransition(0.04,0),Child:core.Keyed(page,tile("Page "+strconv.Itoa(page+1),200,64)),}
// In the row of the list:row:=basic.Row{Spacing:theme.Space12,Children:[]core.Widget{nav.Hero{Tag:1,Child:icon},basic.Text{Content:"Trip to Kyoto"}}}// On the page the row opens, with the same Tag:header:=basic.Row{Spacing:theme.Space12,Children:[]core.Widget{nav.Hero{Tag:1,Child:big},basic.Text{Content:"Trip to Kyoto"}}}