go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.84k stars 286 forks source link

[MacOS] display has a problem with the scaled MacOS monitor #654

Closed niuhuan closed 2 years ago

niuhuan commented 2 years ago

My monitor max size is 3840 * 2160

WX20220520-155051@2x

But best size is 1080 * 1920,

WX20220520-155113@2x

MacOS only supports accessing the display according to the largest size, and then zooming to the best size. GL rendering still uses the largest size, This is not what we want.

MacOS settings are so rigid that users can't change the real size

The text is too small to see clearly. There is also a problem with GUI size.

WX20220520-155803@2x

Hover doctor

➜  wax git:(main) ✗ Hover doctor
hover: Hover version v1.47.0 running on darwin
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: darwin-pkg is supported
hover: Packaging linux-appimage is not supported on darwin
hover: To still package linux-appimage on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-deb is not supported on darwin
hover: To still package linux-deb on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-pkg is not supported on darwin
hover: To still package linux-pkg on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-rpm is not supported on darwin
hover: To still package linux-rpm on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-snap is not supported on darwin
hover: To still package linux-snap on darwin you need to run hover with the `--docker` flag.
hover: Packaging windows-msi is not supported on darwin
hover: To still package windows-msi on darwin you need to run hover with the `--docker` flag.
hover: 
hover: Sharing flutter version
Flutter 2.10.3 • channel unknown • unknown source
Framework • revision 7e9793dee1 (3 months ago) • 2022-03-02 11:23:12 -0600
Engine • revision bd539267b4
Tools • Dart 2.16.1 • DevTools 2.9.2
hover: Flutter engine commit: https://github.com/flutter/engine/commit/bd539267b42051b0da3d16ffa8f48949dce8aa8f
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Finding out the C compiler version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
module wax/go

go 1.16

require (
        github.com/go-flutter-desktop/go-flutter v0.44.0
        github.com/go-flutter-desktop/plugins/url_launcher v0.1.3
        github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211024062804-40e447a793be
        github.com/golang/protobuf v1.5.2
        github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20220310123445-443808b9cd35
        github.com/pkg/errors v0.9.1
        golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9
        google.golang.org/protobuf v1.28.0
        gorm.io/driver/sqlite v1.3.2
        gorm.io/gorm v1.23.5
)

require github.com/PuerkitoBio/goquery v1.8.0
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.wax
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/init.go  go/cmd/main.go  go/cmd/options.go
➜  wax git:(main) ✗

Error output

Using hover build [...] --XXX to build my application, I get the following error:

No error
[...]
pchampio commented 2 years ago

Does hover run -b '@fix/contentscale' work ?

458