Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed Feb 21, 2024
1 parent 9e77044 commit f933a43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdf/lib/src/pdf/graphic_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class PdfGraphicState {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (other is! PdfGraphicState) {
return false;
}
Expand Down
5 changes: 4 additions & 1 deletion printing/lib/src/printing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ mixin Printing {
return a.name.compareTo(b.name);
});

// ignore: use_build_context_synchronously
if (!context.mounted) {
return null;
}

return await showDialog<Printer>(
context: context,
builder: (context) => SimpleDialog(
Expand Down

0 comments on commit f933a43

Please sign in to comment.