wip
parent
a53750e691
commit
0792eb1190
|
@ -0,0 +1,6 @@
|
||||||
|
enum Group {
|
||||||
|
gruppe1, //HIIT Morgens
|
||||||
|
gruppe2, //HIIT Abends
|
||||||
|
gruppe3, //HIIT Morgens + Schach
|
||||||
|
gruppe4, //HIIT Abends + Schach
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue