Skip to content

Conversation

@Dhivya-SF4094
Copy link
Contributor

Description of Change

This pull request introduces support for a new Material 3-based DatePicker handler on Android, while maintaining compatibility with the existing handler for other platforms and scenarios. It adds a new internal DatePickerHandler2 and supporting platform code, and updates the handler registration logic to conditionally use the new handler when Material 3 is enabled on Android.

Material 3 DatePicker handler for Android:

  • Added new internal DatePickerHandler2 class that uses Google's Material 3 MaterialDatePicker for a modern date selection UI, including dialog management, property mapping, and min/max date constraints.
  • Introduced MauiMaterialDatePicker as a new internal platform control, with appropriate initialization, click handling, and integration points for showing and hiding the picker dialog.
  • Extended Android date picker extensions to support the new MauiMaterialDatePicker, including methods to update format, date, and text.

Handler registration logic:

  • Updated AddControlsHandlers in AppHostBuilderExtensions.cs to register either the new DatePickerHandler2 or the existing DatePickerHandler for DatePicker, depending on whether Material 3 is enabled on Android. Other platforms continue to use the existing handler.

Issues Fixed

Fixes #33650

Material Design Spec - DatePicker

Screenshot

Material 2  Material 3 
   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-datetimepicker DatePicker, TimePicker community ✨ Community Contribution material3 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement material3 support for DatePicker

3 participants