Skip to content

Commit

Permalink
Update lints for Flutter 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Aug 16, 2024
1 parent 896ca12 commit 242e4b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ analyzer:
errors:
todo: ignore
prefer_const_constructors: ignore # until an automated fix can resolve hundreds of issues
deprecated_member_use: ignore # until upgrade to MD3 components, colours, etc.
exclude:
- lib/generated/**
- lib/phonetic.dart
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/account_create.dart
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ class AccountCreateWrapperWidget extends StatelessWidget {
),
body: PopScope(
canPop: skipBackCheck,
onPopInvoked: (bool didPop) async {
onPopInvokedWithResult: (bool didPop, Object? result) async {
if (didPop) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/entry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class EntryWidget extends StatelessWidget {
),
body: PopScope(
canPop: !entry.isDirty,
onPopInvoked: (bool didPop) async {
onPopInvokedWithResult: (bool didPop, Object? result) async {
if (didPop) {
return;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/widgets/kee_vault_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ class KeeVaultAppState extends State<KeeVaultApp> with WidgetsBindingObserver, T
l.e('Nav context unexpectedly missing. Autofill navigation is likely to fail in strange ways.');
return;
}
if (!navContext.mounted) {
l.e('Nav context unexpectedly unmounted. Autofill navigation is likely to fail in strange ways.');
return;
}
final mode = intent?.extra?['autofill_mode'];
if (mode?.startsWith('/autofill') ?? false) {
BlocProvider.of<AutofillCubit>(navContext).refresh();
Expand Down

0 comments on commit 242e4b6

Please sign in to comment.