Skip to content

Commit

Permalink
Update to new app api
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 16, 2018
1 parent fdbb239 commit c27162d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ And then you're ready to write your first app!
package main

import "github.com/fyne-io/fyne/widget"
import "github.com/fyne-io/fyne/desktop"
import "github.com/fyne-io/fyne/app"

func main() {
app := desktop.NewApp()
app := app.New()

w := app.NewWindow("Hello")
w.SetContent(widget.NewList(
Expand Down Expand Up @@ -123,11 +123,11 @@ The following is exactly the same as the code above but in this different style.
package main

import "github.com/fyne-io/fyne"
import "github.com/fyne-io/fyne/desktop"
import "github.com/fyne-io/fyne/app"
import "github.com/fyne-io/fyne/widget"

func main() {
app := desktop.NewApp()
app := app.New()

w := app.NewWindow("Hello")
w.SetContent(&widget.List{Children: []fyne.CanvasObject{
Expand Down
4 changes: 2 additions & 2 deletions cmd/hello/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
package main

import "github.com/fyne-io/fyne"
import "github.com/fyne-io/fyne/desktop"
import "github.com/fyne-io/fyne/app"
import "github.com/fyne-io/fyne/widget"

func main() {
app := desktop.NewApp()
app := app.New()

w := app.NewWindow("Hello")
w.SetContent(&widget.Box{Horizontal: false, Children: []fyne.CanvasObject{
Expand Down

0 comments on commit c27162d

Please sign in to comment.