Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 7423e9e

Browse files
authored
Merge pull request #15 from DutchCodingCompany/fix/fix_overlay_safe_call
Fix/fix overlay safe call
2 parents e002d3c + 1d4ac9f commit 7423e9e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.4
2+
3+
- reverted removing of safe-calls on overlays. They are only for flutter >= 3.7.0.
4+
- Changed flutter sdk limit from >= 1.20.0 to >= 3.0.0
5+
16
## 0.0.3
27

38
- Changed `lint` package to `flutter_lints` #12

lib/src/presentation/authenticator_widget.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ class _AuthenticatorWidgetState extends State<AuthenticatorWidget> {
9696
),
9797
);
9898
if (!_isShowingSplashScreen) {
99-
Overlay.of(context).insert(overlayEntry!);
99+
// As of flutter 3.7.0 these will be non-null. For they are kept in place.
100+
Overlay.of(context)?.insert(overlayEntry!);
100101
}
101102
}
102103
}
@@ -105,7 +106,8 @@ class _AuthenticatorWidgetState extends State<AuthenticatorWidget> {
105106
setState(() {
106107
_isShowingSplashScreen = false;
107108
if (overlayEntry != null) {
108-
Overlay.of(context).insert(overlayEntry!);
109+
// As of flutter 3.7.0 these will be non-null. For they are kept in place.
110+
Overlay.of(context)?.insert(overlayEntry!);
109111
}
110112
});
111113
});

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: pin_lock
22

3-
version: 0.0.3
3+
version: 0.0.4
44

55
description: "A full solution to local authentication: it contains authentication logic and tracks authentication-relevant data, while providing an interface for app-specific UI implementatin."
66

77
repository: https://github.com/DutchCodingCompany/pin_lock
88

99
environment:
1010
sdk: ">=2.12.0 <3.0.0"
11-
flutter: ">=1.20.0"
11+
flutter: ">=3.0.0"
1212

1313
dependencies:
1414
flutter:

0 commit comments

Comments
 (0)