Skip to content

Commit

Permalink
restore overlay nullable check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fintasys committed Apr 10, 2023
1 parent b9ebba6 commit b3bfef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/skin_tone_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mixin SkinToneOverlayStateMixin<T extends StatefulWidget> on State<T> {
);

if (_overlay != null) {
Overlay.of(context).insert(_overlay!);
Overlay.of(context)?.insert(_overlay!);
} else {
throw Exception('Nullable skin tone overlay insert attempt');
}
Expand Down

0 comments on commit b3bfef1

Please sign in to comment.