Skip to content

Commit 0a12b7b

Browse files
committed
Migrate from js to js_interop. Closes #676. Closes #671.
1 parent 0081586 commit 0a12b7b

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
## [2.4.0] - (2024-Mar-17)
2+
3+
- Migrate from [js](https://pub.dev/packages/js) to [js_interop](https://dart.dev/interop/js-interop). Closes [#676](https://github.com/jonbhanson/flutter_native_splash/issues/676). Closes [#671](https://github.com/jonbhanson/flutter_native_splash/issues/671).
4+
15
## [2.3.13] - (2024-Feb-18)
26

3-
- Added better exception handling based on [this comment](https://github.com/jonbhanson/flutter_native_splash/issues/643#issuecomment-1938416308). Thanks [BujusKrachus](https://github.com/BujusKrachus) for the detailed explanation.
7+
- Added better exception handling based on [this comment](https://github.com/jonbhanson/flutter_native_splash/issues/643#issuecomment-1938416308). Thanks [BujusKrachus](https://github.com/BujusKrachus) for the detailed explanation.
48

59
## [2.3.12] - (2024-Feb-18)
610

7-
- Fix incorrect rejection of parameter values. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652).
11+
- Fix incorrect rejection of parameter values. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652).
812
- Updated dependencies.
913

1014
## [2.3.11] - (2024-Feb-14)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file.
1919

2020
```yaml
2121
dependencies:
22-
flutter_native_splash: ^2.3.13
22+
flutter_native_splash: ^2.4.0
2323
```
2424
2525
Don't forget to `flutter pub get`.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ packages:
124124
path: ".."
125125
relative: true
126126
source: path
127-
version: "2.3.12"
127+
version: "2.4.0"
128128
flutter_test:
129129
dependency: "direct dev"
130130
description: flutter

lib/remove_splash_from_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@JS()
22
library remove_splash_from_web;
33

4-
import "package:js/js.dart";
4+
import 'dart:js_interop';
55

66
@JS("removeSplashFromWeb")
77
external void removeSplashFromWeb();

pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: flutter_native_splash
22
description: Customize Flutter's default white native splash screen with
33
background color and splash image. Supports dark mode, full screen, and more.
4-
version: 2.3.13
4+
version: 2.4.0
55
repository: https://github.com/jonbhanson/flutter_native_splash
66
issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues
77

88
environment:
9-
sdk: '>=2.19.0 <4.0.0'
9+
sdk: '>=3.0.0 <4.0.0'
1010
flutter: ">=2.5.0"
1111

1212
dependencies:
@@ -15,7 +15,6 @@ dependencies:
1515
sdk: flutter
1616
flutter_web_plugins:
1717
sdk: flutter
18-
js: ^0.7.1
1918
html: ^0.15.4
2019
image: ^4.1.7
2120
meta: ^1.11.0

0 commit comments

Comments
 (0)