Skip to content
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

[DropdownButton]: Fix alignment parameter doesn't work for hint when isExpanded: true #102752

Merged

Conversation

TahaTesser
Copy link
Member

fixes #102751

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: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Apr 28, 2022
@TahaTesser TahaTesser requested a review from gspencergoog April 28, 2022 13:10
@HansMuller HansMuller requested review from QuncCccccc and removed request for gspencergoog April 28, 2022 15:23
hint: const Text(hintText)),
);
expect(tester.getTopLeft(find.text(hintText)).dx, 712.0);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. Just double check, do we need tests to cover AlightmentDirectional.topStart, AlightmentDirectional.topEnd, AlightmentDirectional.bottomStart, AlightmentDirectional.buttomEnd and etc.?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey, thanks for looking into this. It makes sense it is certainly possible to align at corners when setting itemHeight
I've updated the test and added comments to make it easier to follow the large test.

@TahaTesser TahaTesser requested a review from QuncCccccc May 2, 2022 22:35
@TahaTesser TahaTesser force-pushed the fix_dropdown_hint_alignment branch from 3bd17cb to d262f16 Compare May 3, 2022 10:00
@TahaTesser TahaTesser force-pushed the fix_dropdown_hint_alignment branch from d262f16 to 7ac2342 Compare May 3, 2022 14:26
Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@fluttergithubbot fluttergithubbot merged commit 13d76b2 into flutter:master May 6, 2022
@TahaTesser TahaTesser deleted the fix_dropdown_hint_alignment branch May 6, 2022 06:35
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 6, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request May 6, 2022
@TahaTesser TahaTesser changed the title [DropdownButton]: Fix alignmentparameter doesn't work for hint when isExpanded: true [DropdownButton]: Fix alignment parameter doesn't work for hint when isExpanded: true Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DropdownButton]: alignment parameter doesn't work for hint when isExpanded: true
4 participants