buttons and horizontal layout in golang gio ui framework

preview_player
Показать описание
we will layout and create buttons in golang gioui

source code gist:

00:00 setting golang gioui boilerplate
00:36 reviewing boilerplate code
02:30 turning a label into a button / making a label clickable
05:05 making a button widget
07:35 creating a row for widgets
10:40 fixing button bug in codewe will layout and create buttons in golang gioui
Рекомендации по теме
Комментарии
Автор

any chance of making more of these? really keen to learn more about gio.

EightSixx
Автор

Thank for your tutorial. I use go a lot for server code so I think to change my little console app in go real quick. There's no easy UI kit the finally found GIO but the doc is a bit lacking that I can't even guess how to do h alignment in v flex. I'm almost run back to java before finally see this video. Those AI also didn't help except throw nonsense gibberish function lol //Can't blame them because it lack of human input.

AstralrAstralr-mjtr
Автор

why there is so few tutorials and blogs about GIO, on the otherhand i found a lot about Fyne

shahriarahmed
Автор

I really appreciate this video, but after 2 hours try to copy your exact code, it failed to compile. I guess things have moved on in the past year. Line: lbl := material.Label(th, unit.Dp(50), "hello world") gives: cannot use unit.Dp(50) (constant 50 of type unit.Dp) as unit.Sp value in argument to material.Label. Changing it to unit.Sp(50) runs, but crashes when anything is pressed. I wish I knew how to fix this.

michaelnaylor
Автор

gio почему это так сложно тот же проект в fyne займет максимум 30 строк...

ArtemCYOU
join shbcf.ru