add(project): initial commit
This commit is contained in:
parent
f34565bf49
commit
cf17a4ec59
11 changed files with 628 additions and 0 deletions
25
internal/components/dropdown.go
Normal file
25
internal/components/dropdown.go
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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{}, ""
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue