add artist discography page
This commit is contained in:
@@ -44,6 +44,8 @@ type CustomHyperlink struct {
|
||||
widget.BaseWidget
|
||||
h *hyperlinkWrapper
|
||||
|
||||
OnTapped func()
|
||||
|
||||
container *fyne.Container
|
||||
minSize fyne.Size
|
||||
}
|
||||
@@ -52,6 +54,11 @@ func NewCustomHyperlink() *CustomHyperlink {
|
||||
c := &CustomHyperlink{
|
||||
h: newHyperlinkWrapper(200),
|
||||
}
|
||||
c.h.h.OnTapped = func() {
|
||||
if c.OnTapped != nil {
|
||||
c.OnTapped()
|
||||
}
|
||||
}
|
||||
c.ExtendBaseWidget(c)
|
||||
c.container = container.NewHBox(c.h, layout.NewSpacer())
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user