Skip to content

CupertinoButton: Add clickable cursor on web#96863

Merged
fluttergithubbot merged 3 commits intoflutter:masterfrom
NevercodeHQ:cupertinobutton_web_cursor
Mar 4, 2022
Merged

CupertinoButton: Add clickable cursor on web#96863
fluttergithubbot merged 3 commits intoflutter:masterfrom
NevercodeHQ:cupertinobutton_web_cursor

Conversation

@TahaTesser
Copy link
Contributor

@TahaTesser TahaTesser commented Jan 19, 2022

part of #86174

Complete details #86174 (comment)

Integration test for web results:

CupertinoButton

Launching integration_test/cupertino/cupertino_button.dart on Chrome in debug mode...
integration_test/cupertino/cupertino_button.dart:1
DartUri: Unresolved uri: dart:web_sql
DartUri: Unresolved uri: dart:ui

This app is linked to the debug service: ws://127.0.0.1:53522/VuUlt7P2VyM=/ws
Debug service listening on ws://127.0.0.1:53522/VuUlt7P2VyM=/ws
💪 Running with sound null safety 💪
Connecting to VM Service at ws://127.0.0.1:53522/VuUlt7P2VyM=/ws
00:00 +0: Hovering over Cupertino button updates cursor to clickable on Web
00:00 +1: (tearDownAll)
00:00 +2: All tests passed!

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Jan 19, 2022
Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very straightforward implementation! I think it would be good for the test to also test when the mouse is not hovering over the button.

Another thing I noticed on macOS-web is that for buttons/tab-bars/and other clickable items there is a subtle highlight associated with a hover over the element. Though I did not find anything in regards to it on https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/

@Renzo-Olivares Renzo-Olivares self-assigned this Mar 2, 2022
@TahaTesser TahaTesser force-pushed the cupertinobutton_web_cursor branch from 1bfddb6 to 5eac917 Compare March 3, 2022 08:59
@TahaTesser TahaTesser force-pushed the cupertinobutton_web_cursor branch from 5eac917 to 33a4c03 Compare March 3, 2022 22:53
@TahaTesser
Copy link
Contributor Author

TahaTesser commented Mar 4, 2022

@Renzo-Olivares
Actually tested the test on the web using integration_test, it works as expected after updating the test, results in the description.

Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you for addressing all my comments!

@TahaTesser
Copy link
Contributor Author

@Renzo-Olivares
My pleasure! Appreciate you taking the time to review these Cupertino PRs

I've filed a bunch of other related PRs, I followed the same pattern and tested those as well using integration_test to make sure the web is in fact updating the cursor and following the same title pattern for all of them.

@fluttergithubbot fluttergithubbot merged commit 4b902c7 into flutter:master Mar 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 4, 2022
@TahaTesser TahaTesser deleted the cupertinobutton_web_cursor branch March 4, 2022 23:38
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 8, 2022
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants