Skip to content

How to capture AM and PM ?  #41

@iesmail-znz

Description

@iesmail-znz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions