Skip to content

Commit

Permalink
chore: melos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn committed Nov 5, 2024
1 parent 4c062b7 commit dfdad00
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/lib/screens/app_onboarding/preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Preview {
} catch (e) {
try {
StudyULogger.info(
'[PreviewApp]: Failed fetching subject: $e. Trying to sign in participant');
'[PreviewApp]: Failed fetching subject: $e. Trying to sign in participant',);

if (await signInParticipant()) {
subject = await _fetchRemoteSubject(selectedStudyObjectId!);
Expand All @@ -185,7 +185,7 @@ class Preview {
if (subject != null && subject!.studyId == study!.id) return subject;
} catch (e) {
StudyULogger.error(
'[PreviewApp]: Failed fetching subject after sign in: $e');
'[PreviewApp]: Failed fetching subject after sign in: $e',);
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/lib/screens/study/dashboard/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:provider/provider.dart';
import 'package:studyu_app/models/app_error.dart';
import 'package:studyu_app/models/app_state.dart';
import 'package:studyu_app/routes.dart';
import 'package:studyu_app/util/app_analytics.dart';
Expand All @@ -13,8 +14,6 @@ import 'package:studyu_app/util/schedule_notifications.dart';
import 'package:studyu_core/core.dart';
import 'package:studyu_flutter_common/studyu_flutter_common.dart';

import '../../../models/app_error.dart';

class Settings extends StatefulWidget {
const Settings({super.key});

Expand Down
4 changes: 2 additions & 2 deletions app/lib/screens/study/onboarding/kickoff.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _KickoffScreen extends State<KickoffScreen> {
ErrorAction(AppLocalizations.of(context)!.retry,
() => _storeUserStudy(context),
actionDescription:
AppLocalizations.of(context)!.retry_description),
AppLocalizations.of(context)!.retry_description,),
ErrorAction(
AppLocalizations.of(context)!.join_new_study,
() => Navigator.pushNamedAndRemoveUntil(
Expand All @@ -68,7 +68,7 @@ class _KickoffScreen extends State<KickoffScreen> {
actionDescription:
AppLocalizations.of(context)!.join_new_study_description,
),
]));
],),);
StudyULogger.fatal('Failed creating subject: $e');
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/screens/study/tasks/task_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Future<void> handleTaskCompletion(
AppLocalizations.of(context)!.could_not_save_results,
actions: [
ErrorAction(AppLocalizations.of(context)!.retry,
() => handleTaskCompletion(context, completionCallback)),
() => handleTaskCompletion(context, completionCallback),),
],
),
);
Expand Down
4 changes: 2 additions & 2 deletions app/lib/util/error_handler.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import '../models/app_error.dart';
import 'package:studyu_app/models/app_error.dart';

class ErrorHandler {
static Future<void> handleError(BuildContext context, AppError error) async {
Expand All @@ -27,7 +27,7 @@ class ErrorHandler {
TextSpan(
text: error.actions![i].actionText,
style: const TextStyle(
fontWeight: FontWeight.bold),
fontWeight: FontWeight.bold,),
),
const TextSpan(text: " instead?"),
],
Expand Down

0 comments on commit dfdad00

Please sign in to comment.