Upgrading to v2.4
The 2.4 release is fully backward compatible with 2.3.5 and earlier, so upgrading is as simple as updating the version of code you compile with. From thie v2.4.0 release of Fyne it requires Go 1.17, and so all projects are assumed to be using Go modules.
go.mod file and alter the the
require line to use version
or you can execute the following command inside the directory:
go get email@example.com
The next time you build or run your app it will be using the 2.4 API, showing the new curved corners in input widgets and selection.
You should update the
fyne tool for v2.4.0 to get some of the new features and bug fixes.
You can make the upgrade by using the
go get command similarly to above:
go install firstname.lastname@example.org
After that completes, check you have the new version installed by running
Although this release is backwards compatible so your code will compile and run as expected, there are some changes which you may notice.
- Fyne now requires Go 1.17 - be sure to upgrade if you were on an earlier version
Entry.Wrappingto disable scrolling was confusing, instead you can now set
- Refreshing an image will now happen in the current goroutine not render process, apps may wish to add async image load
- Icons for macOS bundles are now padded and rounded, disable with “-use-raw-icon”
- Accordion widget now fills available space - put it inside a
VBoxcontainer for old behavior (#4126)