Skip to content

Commit

Permalink
Merge pull request #124 from NobodyForNothing/FIX-relative-intervall-…
Browse files Browse the repository at this point in the history
…update

Ensure relative intervalls update on app startup
  • Loading branch information
derdilla authored Aug 10, 2023
2 parents 8a31c6b + c5aef2c commit 98dcd40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ void main() async {
final dataModel = await BloodPressureModel.create();
final settingsModel = await Settings.create();

// Reset the step size intervall to current on startup
settingsModel.changeStepSize(settingsModel.graphStepSize);

runApp(MultiProvider(providers: [
ChangeNotifierProvider(create: (context) => dataModel),
ChangeNotifierProvider(create: (context) => settingsModel),
Expand Down

0 comments on commit 98dcd40

Please sign in to comment.