commit
c7dd5361c4
|
@ -0,0 +1,15 @@
|
|||
image: cirrusci/flutter:latest
|
||||
|
||||
stages:
|
||||
- analyze
|
||||
|
||||
before_script:
|
||||
- flutter pub get
|
||||
- flutter clean
|
||||
|
||||
analyze:
|
||||
stage: analyze
|
||||
script:
|
||||
- flutter analyze
|
||||
only:
|
||||
- merge_requests
|
|
@ -22,8 +22,7 @@ class _MoodFormState extends State<MoodForm> {
|
|||
void submitForm() {
|
||||
if (_moodFormKey.currentState!.validate()) {
|
||||
_moodFormKey.currentState?.save(); //call every onSave Method
|
||||
Mood mood =
|
||||
Mood(slider.getSliderValue().toInt(), _textInput, DateTime.now());
|
||||
Mood mood = Mood(slider.sliderValue.toInt(), _textInput, DateTime.now());
|
||||
DatabaseService.instance.addMood(mood);
|
||||
_moodFormKey.currentState?.reset();
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class _SleepFormState extends State<SleepForm> {
|
|||
if (_sleepFormKey.currentState!.validate()) {
|
||||
_sleepFormKey.currentState?.save(); //call every onSave Method
|
||||
Sleep sleep = Sleep(
|
||||
slider.getSliderValue().toInt(),
|
||||
slider.sliderValue.toInt(),
|
||||
_textInput,
|
||||
DateTime.now(),
|
||||
sleepTimePicker.getCurrentTime,
|
||||
|
|
Loading…
Reference in New Issue