Skip to content

Commit

Permalink
chore: Apply static analysis changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn authored and github-actions[bot] committed Dec 16, 2024
1 parent 5905008 commit b7bba79
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 46 deletions.
19 changes: 19 additions & 0 deletions core/lib/src/models/fitbit/fitbit_credentials.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions core/lib/src/models/fitbit/fitbit_datas/fitbit_heart_data.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions core/lib/src/models/questionnaire/questions/fitbit_question.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,57 +16,60 @@ class StudyDesignFitbitCredentialsFormView extends StudyDesignPageWidget {
final state = ref.watch(studyControllerProvider(studyId));

return AsyncValueWidget(
value: state.study,
data: (study) {
final formViewModel =
ref.watch(fitbitCredentialsFormViewModelProvider(studyId));
value: state.study,
data: (study) {
final formViewModel =
ref.watch(fitbitCredentialsFormViewModelProvider(studyId));

return ReactiveForm(
formGroup: formViewModel.form,
child: Column(children: <Widget>[
TextParagraph(
text:
'Information about Fitbit Credentials retrieval will be here',
),
const SizedBox(height: 24.0),
FormTableLayout(
rows: [
FormTableRow(
control: formViewModel.clientIdControl,
label: 'Client ID',
labelHelpText: 'Tooltip here',
input: Row(
children: [
Expanded(
child: ReactiveTextField(
formControl: formViewModel.clientIdControl,
decoration: const InputDecoration(
hintText: 'Client ID',
),
return ReactiveForm(
formGroup: formViewModel.form,
child: Column(
children: <Widget>[
TextParagraph(
text:
'Information about Fitbit Credentials retrieval will be here',
),
const SizedBox(height: 24.0),
FormTableLayout(
rows: [
FormTableRow(
control: formViewModel.clientIdControl,
label: 'Client ID',
labelHelpText: 'Tooltip here',
input: Row(
children: [
Expanded(
child: ReactiveTextField(
formControl: formViewModel.clientIdControl,
decoration: const InputDecoration(
hintText: 'Client ID',
),
),
],
),
),
FormTableRow(
control: formViewModel.clientSecretControl,
label: 'Client Secret',
labelHelpText: 'Tooltip here',
input: ReactiveTextField(
formControl: formViewModel.clientSecretControl,
decoration: const InputDecoration(
hintText: 'Client Secret',
),
],
),
),
FormTableRow(
control: formViewModel.clientSecretControl,
label: 'Client Secret',
labelHelpText: 'Tooltip here',
input: ReactiveTextField(
formControl: formViewModel.clientSecretControl,
decoration: const InputDecoration(
hintText: 'Client Secret',
),
),

],
columnWidths: const {
0: FixedColumnWidth(185.0),
1: FlexColumnWidth(),
},
),
],),);
},);
),
],
columnWidths: const {
0: FixedColumnWidth(185.0),
1: FlexColumnWidth(),
},
),
],
),
);
},
);
}
}

0 comments on commit b7bba79

Please sign in to comment.