25 lines
469 B
Go
25 lines
469 B
Go
package components
|
|
|
|
import (
|
|
"gioui.org/layout"
|
|
"gioui.org/widget"
|
|
"gioui.org/widget/material"
|
|
)
|
|
|
|
type Dropdown struct {
|
|
Editor widget.Editor
|
|
Clicks []*widget.Clickable
|
|
Options []string
|
|
Filtered []string
|
|
Show bool
|
|
}
|
|
|
|
func NewDropdown(options []string) *Dropdown {
|
|
return &Dropdown{
|
|
Options: options,
|
|
}
|
|
}
|
|
|
|
func (d *Dropdown) Layout(gtx layout.Context, th *material.Theme, hint string) (layout.Dimensions, string) {
|
|
return layout.Dimensions{}, ""
|
|
}
|