show static method

Future<TimeOfDay?> show(
  1. BuildContext context, {
  2. TimeOfDay? initialTime,
  3. String? helpText,
})

Implementation

static Future<TimeOfDay?> show(
  BuildContext context, {
  TimeOfDay? initialTime,
  String? helpText,
}) {
  return showModalBottomSheet<TimeOfDay>(
    context: context,
    backgroundColor: Colors.transparent,
    barrierColor: context.kolors.textPrimary.withValues(alpha: .32),
    builder: (context) => _TimePickerSheet(
      initialTime: initialTime ?? TimeOfDay.now(),
      title: helpText ?? 'Choose time',
    ),
  );
}