upTimePicker static method

dynamic upTimePicker({
  1. required BuildContext context,
  2. required TimeOfDay initialTime,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static upTimePicker(
    {required BuildContext context,
    required TimeOfDay initialTime,
    UpStyle? style,
    UpColorType? colorType}) async {
  return showTimePicker(
    context: context,
    initialTime: initialTime,
    builder: (BuildContext context, Widget? child) {
      return Theme(
        data: UpStyle.getTimePickerThemeData(context,
            style: style, colorType: colorType),
        child: child ?? const Text(""),
      );
    },
  );
}