Skip to content

Conversation

@syedaniq
Copy link
Contributor

This PR adds two new properties to the Material Design TimePicker: switchToInputEntryModeIcon and switchToTimerEntryModeIcon. These allow developers to customize the icons for toggling between dial and input modes, with default icons (Icons.keyboard_outlined and Icons.access_time) used if none are provided.

Fixes #156942

Pre-launch Checklist

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Oct 18, 2024
Copy link
Contributor

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

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

This looks good to me. The failing CI task seems unrelated to your PR, though.

Seems like it is also failing for other PR's.

@syedaniq
Copy link
Contributor Author

Thanks for your time and the helpful suggestions @navaronbracke, really appreciate it.
The checks were all sucessfull this time 🥳

@syedaniq syedaniq force-pushed the fix156942-timepicker-custom-icons branch from 28e7a6b to 8015fa2 Compare October 21, 2024 14:31
@Piinks Piinks requested review from nate-thegrate and removed request for navaronbracke October 23, 2024 18:12
Copy link
Contributor

@nate-thegrate nate-thegrate left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for the contribution!

Comment on lines 2224 to 2228
/// {@macro flutter.material.time_picker.switchToInputEntryModeIcon}
final Icon switchToInputEntryModeIcon;

/// {@macro flutter.material.time_picker.switchToTimerEntryModeIcon}
final Icon switchToTimerEntryModeIcon;
Copy link
Contributor

Choose a reason for hiding this comment

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

I was going to leave a suggestion here, but since this is set up to mirror the date picker, it's probably best to leave as-is for consistency.

@syedaniq syedaniq requested a review from TahaTesser October 28, 2024 16:20
Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

Almost there!

@github-actions github-actions bot added the a: text input Entering text in a text field or keyboard related problems label Oct 29, 2024
@TahaTesser TahaTesser removed the a: text input Entering text in a text field or keyboard related problems label Oct 29, 2024
Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

LGTM

@TahaTesser TahaTesser added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 29, 2024
@auto-submit auto-submit bot merged commit c83cf96 into flutter:master Oct 29, 2024
73 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 29, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 29, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 29, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 29, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Oct 29, 2024
flutter/flutter@3fb95c7...42132e8

2024-10-29 [email protected] Reland "Upgrade tests to AGP 8.7/Gradle 8.10.2/Kotlin 1.8.10" (flutter/flutter#157617)
2024-10-29 [email protected] [impeller] re-enable impeller shard. (flutter/flutter#157806)
2024-10-29 [email protected] Roll Flutter Engine from 4cb4478016b5 to 725c8e4bc379 (1 revision) (flutter/flutter#157808)
2024-10-29 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Avoid labeling 'context' PRs as 'text-input' (#157650)" (flutter/flutter#157812)
2024-10-29 [email protected] Roll Flutter Engine from b95da8106b98 to 4cb4478016b5 (1 revision) (flutter/flutter#157792)
2024-10-29 [email protected] Remove unused import from kt plugin template (flutter/flutter#157220)
2024-10-29 [email protected] Roll Flutter Engine from 5fa7a123b14a to b95da8106b98 (1 revision) (flutter/flutter#157787)
2024-10-29 [email protected] Fix `TabBar` tab icons not respecting custom `IconTheme` (flutter/flutter#157724)
2024-10-29 [email protected] Roll Flutter Engine from 0c8f0bf4d740 to 5fa7a123b14a (1 revision) (flutter/flutter#157780)
2024-10-29 [email protected] Allow customizing entry mode icons in TimePicker (flutter/flutter#157151)
2024-10-29 [email protected] Add test for `focus_scope.0.dart` (flutter/flutter#157772)
2024-10-29 [email protected] Add test for `page_storage.0.dart` (flutter/flutter#157770)
2024-10-29 [email protected] Roll Flutter Engine from c05af6f939fc to 0c8f0bf4d740 (1 revision) (flutter/flutter#157774)
2024-10-29 [email protected] Roll Flutter Engine from b394e0c98fa0 to c05af6f939fc (1 revision) (flutter/flutter#157767)
2024-10-29 [email protected] Add test for `nested_scroll_view_state.0.dart` (flutter/flutter#157714)
2024-10-29 [email protected] Pin Mac tool_integration_test shards to arm64 (flutter/flutter#157760)
2024-10-29 [email protected] Roll Flutter Engine from ed587dcf61fd to b394e0c98fa0 (4 revisions) (flutter/flutter#157766)
2024-10-28 [email protected] Roll Flutter Engine from 70671baabbba to ed587dcf61fd (10 revisions) (flutter/flutter#157751)
2024-10-28 [email protected] Roll Flutter Engine from 23b2c6d3b3b1 to 70671baabbba (1 revision) (flutter/flutter#157740)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@MichalNemec
Copy link

when this will get on stable? waiting for it since 3.19.5 (March 28, 2024)

@nate-thegrate
Copy link
Contributor

It looks like the issue was filed on October 16 and then this contribution was merged on October 29.
The current stable branch contains all contributions prior to October 9, so this change missed the cutoff by a few weeks.

Feel free to check out https://docs.flutter.dev/release/archive to get an idea of how often stable releases generally take place. The next one will likely be in about 3 months from now.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App 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.

TimePicker: Allow customizing entry mode icons

5 participants