File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
// platformPlugin implements flutter.Plugin and handles method calls to the
14
14
// flutter/platform channel.
15
15
type platformPlugin struct {
16
- popBehavior PopBehaviorKind
16
+ popBehavior popBehavior
17
17
18
18
messenger plugin.BinaryMessenger
19
19
glfwTasker * tasker.Tasker
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import (
6
6
"github.com/pkg/errors"
7
7
)
8
8
9
- // PopBehaviorKind defines how an application should handle the navigation pop
9
+ // popBehavior defines how an application should handle the navigation pop
10
10
// event from the flutter side.
11
- type PopBehaviorKind int
11
+ type popBehavior int
12
12
13
13
const (
14
14
// PopBehaviorNone means the system navigation pop event is ignored.
15
- PopBehaviorNone PopBehaviorKind = iota
15
+ PopBehaviorNone popBehavior = iota
16
16
// PopBehaviorHide hides the application window on a system navigation pop
17
17
// event.
18
18
PopBehaviorHide
@@ -24,7 +24,7 @@ const (
24
24
)
25
25
26
26
// PopBehavior sets the PopBehavior on the application
27
- func PopBehavior (popBehavior PopBehaviorKind ) Option {
27
+ func PopBehavior (p popBehavior ) Option {
28
28
return func (c * config ) {
29
29
// TODO: this is a workarround because there is no renderer interface
30
30
// yet. We rely on a platform plugin singleton to handle events from the
@@ -33,7 +33,7 @@ func PopBehavior(popBehavior PopBehaviorKind) Option {
33
33
//
34
34
// Downside of this workarround is that it will configure the pop
35
35
// behavior for all Application's within the same Go process.
36
- defaultPlatformPlugin .popBehavior = popBehavior
36
+ defaultPlatformPlugin .popBehavior = p
37
37
}
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments