Main email window
The main layout box of our email client, content, is a horizontal box created with ui.NewHorizontalBox(), which contains the email list on the left (the first item to be appended), a vertical ui.Separator, and the detail view on the right (as it was the list item to be appended). The email list is composed of a ui.Group named inbox, which includes the Inbox title; note that our title label is followed by a series of spaces—this helps to create a more spacious layout in our application. Within this, we have a vertical ui.Box, which has a ui.Label for each of our emails.
As there is no grid layout available, the detail view is composed of various boxes. You can see that the meta box is a horizontal layout of two child instances ...
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