-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Cursors use SystemMouseCursors.click
instead of SystemMouseCursors.basic
#139
Comments
You can wrap the widget you want in a MouseRegion(
cursor: SystemMouseCursos.click,
child: Checkbox(...),
), |
Yes I'm aware of that, but that's not what I'm talking about. This is a snippet from MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
behavior: HitTestBehavior.opaque, I'm saying that the in-built widgets shouldn't use |
Will be fixed alongside #142 |
The pull request doesn't address what I'm talking about. @GroovinChip might explain better. |
Wasn't it that mouse cursors should never be pointers? Material State Props can help us ensure that, right? Along with making it customizable? |
It can ensure customisation yes, but it doesn't directly relate to the issue. I can open a separate PR once #142 is merged. And I'm not sure we'd want to use |
Fair enough |
I have some ideas for this. We can have a By default, on macOS and iOS, the cursor used will be MouseCursor _defaultMouseCursor() {
switch (defaultTargetPlatform) {
case TargetPlatform.macOS:
case TargetPlatform.iOS:
return MouseCursor.defer;
default:
return SystemMouseCursors.click;
}
} |
That sounds great! |
@wilsonowilson so to recap: we're saying that all mouse cursors should default to something like |
@GroovinChip Yeah, although I'm not sure if we'd want to use |
Description
Clickable macOS components do not use the "click cursor". They have always used the default cursor. This forms a distinction between using the web on macOS and interacting with macOS applications.
So by default, clickable elements in macos_ui should use
SystemMouseCursors.basic
instead ofSystemMouseCursors.click
. I also believe an option should be provided to customize that.The text was updated successfully, but these errors were encountered: