Add dex example that dynamically loads a java class from a byte
stream.
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"gioui.org/unit"
|
||||
"gioui.org/widget/material"
|
||||
|
||||
_ "gioui.org/font/gofont"
|
||||
"gioui.org/font/gofont"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -34,6 +34,7 @@ func diffInsets(x, y system.Insets) bool {
|
||||
}
|
||||
|
||||
func eventloop() {
|
||||
gofont.Register()
|
||||
w := app.NewWindow(
|
||||
app.Size(unit.Dp(400), unit.Dp(400)),
|
||||
app.Title("Hello"))
|
||||
|
||||
Reference in New Issue
Block a user