代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。