Skip to content

Commit

Permalink
chore: clean linter problems
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekAbdelouahed committed Nov 26, 2023
1 parent 8590ac5 commit dbab28e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions example/lib/image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ class _ImageWidgetState extends State<ImageWidget> {
)
],
),
child: _selectedReaction != null
? _selectedReaction!.previewIcon
: null,
child: _selectedReaction?.previewIcon,
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/src/extensions/key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/widgets.dart';

extension GlobalKeyExtensions on GlobalKey {
Offset get offset {
final renderBox = currentContext!.findRenderObject() as RenderBox;
final RenderBox renderBox = currentContext!.findRenderObject() as RenderBox;
return renderBox.localToGlobal(Offset.zero);
}
}

0 comments on commit dbab28e

Please sign in to comment.