Skip to content

Commit a6eb585

Browse files
committed
Unexport PopBehaviorKind
1 parent 19902ac commit a6eb585

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// platformPlugin implements flutter.Plugin and handles method calls to the
1414
// flutter/platform channel.
1515
type platformPlugin struct {
16-
popBehavior PopBehaviorKind
16+
popBehavior popBehavior
1717

1818
messenger plugin.BinaryMessenger
1919
glfwTasker *tasker.Tasker

pop.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"github.com/pkg/errors"
77
)
88

9-
// PopBehaviorKind defines how an application should handle the navigation pop
9+
// popBehavior defines how an application should handle the navigation pop
1010
// event from the flutter side.
11-
type PopBehaviorKind int
11+
type popBehavior int
1212

1313
const (
1414
// PopBehaviorNone means the system navigation pop event is ignored.
15-
PopBehaviorNone PopBehaviorKind = iota
15+
PopBehaviorNone popBehavior = iota
1616
// PopBehaviorHide hides the application window on a system navigation pop
1717
// event.
1818
PopBehaviorHide
@@ -24,7 +24,7 @@ const (
2424
)
2525

2626
// PopBehavior sets the PopBehavior on the application
27-
func PopBehavior(popBehavior PopBehaviorKind) Option {
27+
func PopBehavior(p popBehavior) Option {
2828
return func(c *config) {
2929
// TODO: this is a workarround because there is no renderer interface
3030
// yet. We rely on a platform plugin singleton to handle events from the
@@ -33,7 +33,7 @@ func PopBehavior(popBehavior PopBehaviorKind) Option {
3333
//
3434
// Downside of this workarround is that it will configure the pop
3535
// behavior for all Application's within the same Go process.
36-
defaultPlatformPlugin.popBehavior = popBehavior
36+
defaultPlatformPlugin.popBehavior = p
3737
}
3838
}
3939

0 commit comments

Comments
 (0)