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

calendarTitle and other parameters does not follow when creating a time picker #5

Closed
MostafaHassan opened this issue Sep 18, 2020 · 4 comments

Comments

@MostafaHassan
Copy link

DateTimePicker with the following type: DateTimePickerType.time
will not use multiple parameters. One example being the calendarTitle

@hslbetto
Copy link
Member

The date_time_picker uses the showTimePicker, it is a flutter original component, and it has just 5 parameters and have no title, it just show the time.

@MostafaHassan
Copy link
Author

@hslbetto yes, but the helpText works as a title, and the cancelText and confirmText could be helpful to use, as it works in the showdatePicker and not showTimePicker.

Is it possible to fix the problem by adding the following to _showTimePickerDialog()
helpText: widget.calendarTitle,
cancelText: widget.cancelText,
confirmText: widget.confirmText,

@hslbetto
Copy link
Member

showTimePicker is a native flutter plugin that call the time dialog from device and it has just 5 parameters, and none are about style. To change cancel button name or ok button, you can do this through material localization properties.
showDatePicker is almost the same, but has much more parameters, and you can control directly the style and the dialog texts.

@MostafaHassan
Copy link
Author

@hslbetto Alright, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants