prosapp_web_app has chat, dashboard, calendar, support, 13 providers and Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb. Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
454 B
Dart
16 lines
454 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:prosapp_web_app/utils/time_of_day_extension.dart';
|
|
|
|
class TimeOfDayUtils {
|
|
static List<TimeOfDay> genRanges(TimeOfDay timeStart, TimeOfDay timeEnd) {
|
|
List<TimeOfDay> ranges = [];
|
|
TimeOfDay current = timeStart;
|
|
while (current.isBefore(timeEnd)) {
|
|
ranges.add(current);
|
|
// Sumar 2 horas al objeto DateTime
|
|
current = current.add(hour: 2);
|
|
}
|
|
return ranges;
|
|
}
|
|
}
|