Skip to content

Commit

Permalink
chore(app): fixes linting
Browse files Browse the repository at this point in the history
and removes obsolete code
  • Loading branch information
LeonHermann322 committed Jul 11, 2022
1 parent 7bb086c commit a69bfd1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 32 deletions.
2 changes: 1 addition & 1 deletion app/lib/common/pages/medications/cubit.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:comprehension_measurement/comprehension_measurement.dart';
import 'package:collection/collection.dart';
import 'package:comprehension_measurement/comprehension_measurement.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:http/http.dart';

Expand Down
1 change: 0 additions & 1 deletion app/lib/common/widgets/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class PharmeApp extends StatelessWidget {
routeInformationParser: _appRouter.defaultRouteParser(),
routerDelegate: _appRouter.delegate(
initialDeepLink: _isLoggedIn ? 'main' : 'onboarding',
navigatorObservers: () => [AutoRouteObserver()],
),
theme: PharmeTheme.light,
localizationsDelegates: [
Expand Down
2 changes: 2 additions & 0 deletions app/lib/faq/pages/faq.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import '../../common/module.dart';
import '../constants.dart';

class FaqPage extends StatelessWidget {
const FaqPage({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return SingleChildScrollView(
Expand Down
9 changes: 6 additions & 3 deletions app/lib/search/pages/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ class SearchPage extends HookWidget {
ComprehensionHelper.attach(
context.router.push(MedicationRoute(id: med.id)),
context: context,
surveyId: 1,
surveyButtonText: 'test',
introText: 'test',
surveyId: 4,
introText:
'''Would you like to participate in a survey with the aim to measure user comprehension
of the applications content? This would help the developer team greatly to improve PharMe
and make it understandable for everyone!''',
surveyButtonText: 'Continue to survey',
supabaseConfig: supabaseConfig,
);
},
Expand Down
23 changes: 2 additions & 21 deletions app/lib/settings/pages/settings.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:comprehension_measurement/comprehension_measurement.dart';

import '../../common/module.dart';
import '../utils.dart';

class SettingsPage extends StatelessWidget {
const SettingsPage({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return ListView(children: [
Expand Down Expand Up @@ -48,25 +48,6 @@ class SettingsPage extends StatelessWidget {
trailing: Icon(Icons.chevron_right),
onTap: () => context.router.push(TermsAndConditionsRoute()),
),
Divider(),
ListTile(
title: Text(
'Comprehension Measurment',
style: PharmeTheme.textTheme.bodyLarge,
),
),
ListTile(
title: Text('Measure comprehension'),
trailing: Icon(Icons.chevron_right),
onTap: () => measureComprehension(
context: context,
surveyId: 1,
introText: 'Was the last page understandable for you?',
surveyButtonText: 'Yes',
feedbackButtonText: 'No',
supabaseConfig: supabaseConfig,
),
),
]);
}

Expand Down
6 changes: 1 addition & 5 deletions app/lib/settings/pages/terms_and_conditions.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import '../../common/module.dart';

class TermsAndConditionsPage extends StatelessWidget {
const TermsAndConditionsPage({
Key? key,
}) : super(
key: key,
);
const TermsAndConditionsPage({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ dependencies:
black_hole_flutter: ^0.3.5
bloc: ^8.0.3
collection: ^1.16.0
cupertino_icons: ^1.0.5
comprehension_measurement:
git:
url: https://github.com/hpi-dhc/comprehension-measurement.git
ref: main
cupertino_icons: ^1.0.5
dartx: ^1.1.0
debug_overlay: ^0.1.4
dropdown_button2: ^1.6.2
Expand Down

0 comments on commit a69bfd1

Please sign in to comment.