Skip to content

Commit

Permalink
chore: melos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn committed Feb 28, 2025
1 parent 10bd901 commit 50c8037
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions app/lib/util/fitbit_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,10 @@ class FitbitHandler {
switch (type) {
case FitbitQuestionType.steps:
scopes.add(fitbitter.FitbitAuthScope.ACTIVITY);
break;
case FitbitQuestionType.heartrate:
scopes.add(fitbitter.FitbitAuthScope.HEART_RATE);
break;
case FitbitQuestionType.sleep:
scopes.add(fitbitter.FitbitAuthScope.SLEEP);
break;
}
}

Expand All @@ -145,7 +142,7 @@ class FitbitHandler {
clientSecret: fitbitCreds.clientSecret,
redirectUri: fitbitRedirectUrl,
callbackUrlScheme: fitbitCallbackScheme,
scopeList: scopes);
scopeList: scopes,);

if (newCredentials != null) {
await _storeCredentials(newCredentials, study.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:reactive_forms/reactive_forms.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:studyu_core/core.dart';
import 'package:studyu_designer_v2/domain/study.dart';
import 'package:studyu_designer_v2/features/design/study_form_providers.dart';
import 'package:studyu_designer_v2/features/design/study_form_validation.dart';
import 'package:studyu_designer_v2/features/forms/form_validation.dart';
import 'package:studyu_designer_v2/features/forms/form_view_model.dart';
Expand Down Expand Up @@ -135,5 +134,5 @@ FitbitCredentialsFormViewModel fitbitCredentialsFormViewModel(

return FitbitCredentialsFormViewModel(
study: study.value!,
fitbitCredentialsRepository: fitbitCredentialsRepository);
fitbitCredentialsRepository: fitbitCredentialsRepository,);
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class StudyDesignFitbitCredentialsFormView extends StudyDesignPageWidget {
),
InkWell(
onTap: () => _launchURL(
'https://partners.fitbit.com/researchapplication'),
'https://partners.fitbit.com/researchapplication',),
child: Text(
'7. Please fill the following form to obtain access for intraday data. Without this, you cannot obtain any data from Fitbit for your trials.',
style: TextStyle(
Expand Down

0 comments on commit 50c8037

Please sign in to comment.