Created DatePickerBtn and Started Using it in ProgressCreationScreen

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker
2021-02-11 17:05:23 +01:00
parent 6dde08d74d
commit 763cf9d627
4 changed files with 77 additions and 37 deletions

View File

@ -5,3 +5,14 @@ class TimeProgressInvalidNameException implements Exception {
String errMsg() => "The name of a TimeProgress can't be: $invalidName";
}
class TimeProgressStartTimeIsNotBeforeEndTimeException implements Exception {
final startTime;
final endTime;
TimeProgressStartTimeIsNotBeforeEndTimeException(
this.startTime, this.endTime);
String errMsg() =>
"The Start Time has to be before the end time. Therefore these values are invalid: Start Time: $startTime EndTime: $endTime";
}