Skip to content

Commit

Permalink
build(app): make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Apr 23, 2024
1 parent 71cdd65 commit 7db28ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/integration_test/more_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void main() {

expect(find.text(context.l10n.onboarding_1_header), findsOneWidget);

await context.router.root.pop();
await context.router.root.maybePop();
await tester.pumpAndSettle();

// test about us
Expand Down
2 changes: 1 addition & 1 deletion app/lib/common/utilities/drug_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Future<void> updateCachedDrugs() async {
if (previousVersion != null) {
final context = PharMeApp.navigatorKey.currentContext;
if (context != null) {
// ignore: use_build_context_synchronously
await showAdaptiveDialog(
// ignore: use_build_context_synchronously
context: context,
builder: (context) => DialogWrapper(
title: context.l10n.update_warning_title,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/more/pages/more.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class DeleteDataDialog extends HookWidget {
),
actions: [
DialogAction(
onPressed: context.router.root.pop,
onPressed: context.router.root.maybePop,
text: context.l10n.action_cancel,
),
DialogAction(
Expand Down

0 comments on commit 7db28ec

Please sign in to comment.