February 2019
Intermediate to advanced
450 pages
11h 59m
English
As we will be working with canvas APIs, as well as widgets and layouts, we will need to start by importing most of the Fyne sub-packages. In addition to canvas, where we get the basic image APIs, we will also use the theme package for accessing icons and the app package to launch our application. We don't need to import the image libraries, such as image/jpeg, because Fyne image widgets import them for us:
import ( "fyne.io/fyne" "fyne.io/fyne/app" "fyne.io/fyne/canvas" "fyne.io/fyne/layout" "fyne.io/fyne/theme" "fyne.io/fyne/widget")
As with any Fyne application, we start by creating an application using app.New() and then create a window for the application by calling NewWindow() with an appropriate title:
func main() { imageApp ...
Read now
Unlock full access