-
Notifications
You must be signed in to change notification settings - Fork 903
Closed
Labels
date range pickerDate range picker componentDate range picker componentsolvedSolved the query using existing solutionsSolved the query using existing solutionsworkaround availableWorkaround available to overcome the queryWorkaround available to overcome the query
Description
Use case
As a developer I want to have a fully customizable action buttons "Cancel" & "OK".
Current implementation only relies on below code block, in which a bit limiting.
Lastly, "Action buttons" alignment parameter should also be available.
// date_picker.dart lines 7055-7060
Color textColor =
widget.todayHighlightColor ?? _datePickerTheme.todayHighlightColor!;
if (textColor == Colors.transparent) {
final TextStyle style = _datePickerTheme.todayTextStyle!;
textColor = style.color != null ? style.color! : Colors.blue;
}Proposal
I don't know how to properly implement this but maybe create a dedicated class for action button styling?
class DateRangePickerActionButtonStyle {
// alignment
// confirmButtonStyle
// confirmTextStyle
// cancelButtonStyle
// cancelTextStyle
}Metadata
Metadata
Assignees
Labels
date range pickerDate range picker componentDate range picker componentsolvedSolved the query using existing solutionsSolved the query using existing solutionsworkaround availableWorkaround available to overcome the queryWorkaround available to overcome the query