layout: rename Flex.Flexible to just Flex

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-06 09:20:04 +02:00
parent 8d82a3eaa6
commit 529fd4d307
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func ExampleFlex() {
})
// Child with 50% space allowance.
child2 := flex.Flexible(gtx, 0.5, func() {
child2 := flex.Flex(gtx, 0.5, func() {
fmt.Printf("50%%: %v\n", gtx.Constraints.Width)
layoutWidget(gtx, 10, 10)
})