
Hover is a simple build tool to create Flutter desktop applications.
**Hover is brand new and under development, it should be *ed alpha. Anything can break, please backup your data before using hover
Hover is part of the https://github.com/go-flutter-desktop/go-flutter project. Please report issues at the https://github.com/go-flutter-desktop/go-flutter/issues/.
Hover uses Go to build your Flutter application to desktop. Hover itself is also written using the Go language. You will need to install go on your development machine.
Run go version and make sure that your Go version is 1.13 or higher.
Then install hover by running this in your home directory:
bashGO111MODULE=on go get -u -a github.com/go-flutter-desktop/hover
Or windows:
set GO111MODULE=on go get -u -a github.com/go-flutter-desktop/hover
Or for powershell:
powershell$env:GO111MODULE="on"; go get -u -a github.com/go-flutter-desktop/hover
Make sure the hover binary is on your PATH (defaults are $GOPATH/bin or $HOME/go/bin)
Run the same command to update when a newer version becomes available.
Install these dependencies:
You need to make sure you have a C compiler.
The recommended C compiler are documented https://github.com/golang/go/wiki/InstallFromSource#install-c-tools.
You need to make sure you have dependencies of GLFW:
xcode-select --install) for required headers and libraries.libgl1-mesa-dev xorg-dev packages.libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel packages.This assumes you have an existing flutter project which you want to run on desktop. If you don't have a project yet, follow the flutter tutorial for setting up a new project first.
cd into a flutter project.
bashcd projects/simpleApplication
The first time you use hover for a project, you'll need to initialize the project for use with hover. An argument can be passed to hover init to set the project path. This is usually the path for your project on github or a self-hosted git service. If you are unsure use hover init without a path. You can change the path later.
bashhover init github.com/my-organization/simpleApplication
This creates the directory go and adds boilerplate files such as Go code and a default logo.
Optionally, you may add https://github.com/go-flutter-desktop/plugins to go/cmd/options.go
Optionally, change the logo in go/assets/logo.png, which is used as icon for the window.
To run the application and attach flutter for hot-reload support:
bashhover run
The hot-reload is manual because you'll need to press 'r' in the terminal to hot-reload the application.
By default, hover uses the file lib/main_desktop.dart as entrypoint. You may specify a different endpoint by using the --target flag.
IDE integration
VSCode
Please try the experimental Hover extension for VSCode.
If you want to manually integrate with VSCode, read this https://github.com/go-flutter-desktop/go-flutter/issues/129#issuecomment-513590141.
Emacs
Check https://github.com/ericdallo/hover.el packge for emacs integration.
To create a standalone release (JIT mode) build run this command:
bashhover build linux # or darwin or windows
You can create a build for any of the supported OSs using cross-compiling which needs Docker to be installed. Then run the command from above and it will do everything for you.
The output will be in go/build/outputs/linux or windows or darwin.
To start the binary: (replace yourApplicationName with your app name)
bash./go/build/outputs/linux/yourApplicationName
It's possible to zip the whole dir go/build/outputs/linux and ship it to a different machine.
You can package your application for different packaging formats.
First initialize the packaging format:
bashhover init-packaging linux-appimage
Update the configuration files located in go/packaging/linux-appimage/to your needs.
Then create a build and package it using this command:
bashhover build linux-appimage
The packaging output is placed in go/build/outputs/linux-appimage/
To get a list of all available packaging formats run:
bashhover build --help
Hover supports different application flavors via --flavor MY_FLAVOR command.
If you wish to create a new flavor for you application,
simply copy go/hover.yaml into go/hover-MY_FLAVOR.yaml and modify contents as needed.
If no flavor is specified, Hover will always default to hover.yaml
hover run --flavor develop || hover build --flavor develop // hover-develop.yaml
Please report issues at the https://github.com/go-flutter-desktop/go-flutter/issues/.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务