Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleysin committed Dec 23, 2024
1 parent 79d2169 commit e3f825d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/duit_widget/gesture_detector.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package duit_widget

import (
"github.com/Duit-Foundation/duit_go/v3/pkg/duit_attributes"
"github.com/Duit-Foundation/duit_go/v3/pkg/duit_core"
)

func GestureDetector[TAction duit_core.Action](attributes *TAction, id string, child *duit_core.DuitElementModel) *duit_core.DuitElementModel {
func GestureDetector[TAction duit_core.Action](attributes *duit_attributes.GestureDetectorAttributes[TAction], id string, child *duit_core.DuitElementModel) *duit_core.DuitElementModel {
return new(duit_core.DuitElementModel).CreateElement(duit_core.GestureDetector, id, "", attributes, nil, true, 1, nil, child)
}

0 comments on commit e3f825d

Please sign in to comment.