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

How to capture AM and PM ? #41

Open
iesmail-znz opened this issue Jul 14, 2021 · 4 comments
Open

How to capture AM and PM ? #41

iesmail-znz opened this issue Jul 14, 2021 · 4 comments

Comments

@iesmail-znz
Copy link

I am using the 12 Hr Format and would like to also capture AM and PM. Currently it only returns the time. Here's my code:

                     DateTimePicker(
                          type: DateTimePickerType.time,
                          use24HourFormat: false,
                          locale: Locale('pt', 'BR'),
                          icon: Icon(Icons.access_time),
                          timeLabelText: "Choose Opening Time",
                
                          onChanged: (val) => storeTiming.startTime = val,
                          validator: (val) {
                            print(val);
                            return null;
                          },
                          onSaved: (val) => storeTiming.startTime = val,
                        ),

What am I missing?

@sxtfv
Copy link

sxtfv commented Jul 15, 2021

should be fixed with #42

@suvindran3
Copy link

is it fixed yet? I'm still facing this issue

@divyanshu2345
Copy link

did anyone find the solution for this i'm trying to figure how to get AM PM in string

@jaafarismael
Copy link

Obx(() {
return DateTimePicker(
type: DateTimePickerType.time,
initialTime: TimeOfDay.now(),
cursorColor: Colors.yellow,
initialValue: controller.startTime.value,)
I am using GEtx and I solved it by making him listen to observable value

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

5 participants