Mac Designed for Ipad app offset taps when launched in screens with different scaling
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
To reproduce you need two screens with different scaling. I'm using one with 1x and the internal Macbook screen with 2x.
1. Run the default Flutter create app as a MacOS app designed for iPad in the 1x screen
2. Move to the second screen
3. Clicks don't work most probably because the gestures layer is rendered at a different scale.
Maybe related to this issue: https://github.com/flutter/flutter/issues/162184 but here we are not using native views.
We are seeing this behavior in production from people running our iOS app in their macOS devices.
### Expected results
Clicks work in all screens.
### Actual results
No clicks when changing screen.
### Code sample
Default flutter create.
### Screenshots or Video
_No response_
### Logs
_No response_
### Flutter Doctor output
```
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.4.1 24E263 darwin-arm64, locale es-ES) [1.208ms]
• Flutter version 3.29.3 on channel stable at /Users/jorge/.local/share/mise/installs/flutter/3.29.3-stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ea121f8859 (2 weeks ago), 2025-04-11 19:10:07 +0000
• Engine revision cf56914b32
• Dart version 3.7.2
• DevTools version 2.42.3
[✗] Android toolchain - develop for Android devices [496ms]
• Android SDK at /opt/homebrew/Caskroom/android-platform-tools/35.0.2
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [1.230ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [10ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3) [9ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.99.3) [8ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.108.0
[✓] Connected device (4 available) [6,4s]
• iphone J (wireless) (mobile) • 00008130-00016C4A0E90001C • ios • iOS 18.4.1 22E252
• macOS (desktop) • macos • darwin-arm64 • macOS 15.4.1 24E263 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 135.0.7049.115
! Error: Browsing on the local area network for iPad J. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [331ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
```
Contributor guide
Assessment
This issue has not been assessed yet.