Julian Gegner 2023-02-15 14:03:02 +01:00
parent a53750e691
commit 0792eb1190
3 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,6 @@
enum Group {
gruppe1, //HIIT Morgens
gruppe2, //HIIT Abends
gruppe3, //HIIT Morgens + Schach
gruppe4, //HIIT Abends + Schach
}

View File

@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import 'package:smoke_cess_app/enums/group.dart';
class Settings {
//should use shared preferences package
//https://pub.dev/packages/shared_preferences
Group _group;
TimeOfDay _dailyTrainingStartTime;
late DateTime _experimentStartDate;
Settings(this._group, this._dailyTrainingStartTime) {
_experimentStartDate = DateTime.now();
}
void setGroup(Group group) {
_group = group;
}
void setDailyTrainingStartTime(TimeOfDay time) {
_dailyTrainingStartTime = time;
}
void set(Group group) {
_group = group;
}
Group getGroup() {
return _group;
}
TimeOfDay getDailyTrainingStartTime() {
return _dailyTrainingStartTime;
}
DateTime getExperimentStartDate() {
return _experimentStartDate;
}
}

View File

@ -32,7 +32,6 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
@ -53,7 +52,6 @@ dev_dependencies:
# The following section is specific to Flutter packages. # The following section is specific to Flutter packages.
flutter: flutter:
# The following line ensures that the Material Icons font is # The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in # included with your application, so that you can use the icons in
# the material Icons class. # the material Icons class.