Ai
1 Star 0 Fork 0

studvc/go-flutter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
navigation.go 796 Bytes
一键复制 编辑 原始数据 按行查看 历史
pchampio 提交于 2020-11-02 06:09 +08:00 . fixes: #503
package flutter
import (
"github.com/go-flutter-desktop/go-flutter/plugin"
)
const navigationChannelName = "flutter/navigation"
// navigationPlugin implements flutter.Plugin and handles method calls to the
// flutter/navigation channel.
type navigationPlugin struct {
channel *plugin.MethodChannel
}
// all hardcoded because theres not pluggable renderer system.
var defaultNavigationPlugin = &navigationPlugin{}
func (p *navigationPlugin) InitPlugin(messenger plugin.BinaryMessenger) error {
p.channel = plugin.NewMethodChannel(messenger, navigationChannelName, plugin.JSONMethodCodec{})
// Ignored: This information isn't properly formated to set the window.SetTitle
p.channel.HandleFuncSync("routeUpdated", func(_ interface{}) (interface{}, error) { return nil, nil })
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/studvc/go-flutter.git
git@gitee.com:studvc/go-flutter.git
studvc
go-flutter
go-flutter
master

搜索帮助