Skip to content

[Android] Consider showing an arrow cursor when hovering over buttons #170296

Open
@camsim99

Description

@camsim99

Note

CC'ing the framework to see if there's any opposition to this proposal, e.g. philosophically, users are responsible for using MouseRegions themselves to change the cursor as they wish to abide by Android's quality standards.

(This is part of b/366229477)

To achieve Tier 1 large screen compatibility, different cursors should appear as users interact different UI elements; see the Large screen app quality docs. As part of this, an arrow cursor* should be shown on all buttons (this includes TextButton, IconButton, FloatingActionButton, ElevatedButton, DropdownButton, PopupMenuButton)--this is explicitly stated in go/support_touchpad. So, we should consider ensuring an arrow pointer is used when buttons are hovered over.

One option for implementing this functionality is by using a MouseRegion.

*I believe this maps to SystemMouseCursors.basic, though see details in go/support_touchpad because that arrow has a Material-looking style, which should map to PointerIcon.TYPE_ARROW.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listf: material designflutter/packages/flutter/material repository.fyi-frameworkFor the attention of Framework teamplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions