Skip to content

Commit

Permalink
follow new flutter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hatch01 committed Mar 8, 2024
1 parent 18fbcb0 commit 3feb74c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import 'dart:ui';

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:onyx/core/res.dart';
import 'package:onyx/core/search/search_service.dart';
import 'package:onyx/screens/agenda_config/agenda_config_export.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

Expand Down
6 changes: 3 additions & 3 deletions apps/onyx/lib/screens/mails/pages/email_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ class MailDetailsPage extends StatelessWidget {
fileName: mail.attachments[index],
folder: state.currentMailBox!,
appLocalizations:
AppLocalizations.of(context)
));
AppLocalizations.of(
context)));
}
// ignore: use_build_context_synchronously
showDialog(
// ignore: use_build_context_synchronously
context: context,
builder: (_) => SaveOrOpenDialogWidget(
filePath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class URLCompactWidget extends StatelessWidget {
await launchUrl(Uri.parse(url.value),
mode: LaunchMode.externalApplication);
} else {
// ignore: use_build_context_synchronously
showDialog(
// ignore: use_build_context_synchronously
context: context,
builder: (context) => AlertDialog(
title: Text(AppLocalizations.of(context).error),
content: Text(
AppLocalizations.of(context).unableToOpenLink),
content:
Text(AppLocalizations.of(context).unableToOpenLink),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class URLWidget extends StatelessWidget {
await launchUrl(Uri.parse(url.value),
mode: LaunchMode.externalApplication);
} else {
// ignore: use_build_context_synchronously
showDialog(
// ignore: use_build_context_synchronously
context: context,
builder: (context) => AlertDialog(
title: Text(AppLocalizations.of(context).error),
content: Text(
AppLocalizations.of(context).unableToOpenLink),
content:
Text(AppLocalizations.of(context).unableToOpenLink),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
Expand Down
4 changes: 1 addition & 3 deletions packages/lyon1agendaclient/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

analyzer:
enable-experiment:
- records
# analyzer:
# linter:
# rules:
# - camel_case_types
Expand Down
5 changes: 1 addition & 4 deletions packages/lyon1tomussclient/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ include: package:lints/recommended.yaml
# rules:
# - camel_case_types

analyzer:
enable-experiment:
- records
- patterns
# analyzer:
# exclude:
# - path/to/excluded/files/**

Expand Down

0 comments on commit 3feb74c

Please sign in to comment.