OmniDateTimePicker icon indicating copy to clipboard operation
OmniDateTimePicker copied to clipboard

styling OmniDateTimePicker

Open thorizer opened this issue 1 year ago • 2 comments

is it possible to style omnidatepicker time. I tried everything in themedata but the time part does not change:  ngi_gps_Bp5pIsa97q

thorizer avatar Sep 28 '24 00:09 thorizer

Hi Alan,

I hope this message finds you well. I wanted to take a moment to express my gratitude for developing the OmniDateTimePicker Flutter package. It's a wonderful tool that has greatly improved my workflow.

However, I'm currently experiencing an issue similar to what Thorizer reported. If possible, I would appreciate any guidance or solutions you might have regarding this problem.

I've tried specifying the Cupertino Theme in the MaterialApp but it doesn't change the font family, font weight, and font size. All it did was what Thorizer reported and turned the font color black.

Screenshot 2024-10-05 210149

Thank you once again for your amazing work on this package!

Porkupig avatar Oct 05 '24 13:10 Porkupig

that's true , it doesn't change , did anyone figure it out. ?

rulefahd avatar Feb 26 '25 22:02 rulefahd

I need something similar, only add transparency to the background, but it is not possible

alexlovar avatar Apr 11 '25 04:04 alexlovar

fyi: I forked the package and added a timeTextStyle argument to the showOmniDateTime... functions where you can customize the text of the hour, minute, seconds and am/pm selectors. Feel free to use it if you wish.

lezli01 avatar Jul 20 '25 17:07 lezli01

This should work in v2.2.0

 theme: ThemeData(
                        timePickerTheme: const TimePickerThemeData(
                      hourMinuteTextStyle: TextStyle(
                        color: Colors.red,
                        fontSize: 20,
                      ),
                    ))

alanchan-dev avatar Jul 27 '25 03:07 alanchan-dev