Toolbar and menu
Unfortunately, Fyne has no menu bar support (although it is proposed in the following project issue: https://github.com/fyne-io/fyne/issues/41). We also cannot easily create one from simpler components, as there is currently no support for pop-over widgets. Therefore, we will just add a toolbar (as in some previous examples).
Using Fyne's built-in iconography (from the material design project), we can quickly create an attractive toolbar. To set up the toolbar, we will create a new function, buildToolbar(), that will create the toolbar and add the items to it. We pass in the application instance so that the Compose item can pass it into the ShowCompose() function we created earlier.
The toolbar constructing function takes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access