diff --git a/CHANGELOG.md b/CHANGELOG.md index f243921..ae1563f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.1.0 + +* null-safety migration (@ValeteTech, PR#16) +* Switch to version 2 of flutter embedding. +* Add documentation + ## 0.0.2 * Update pubspec.yaml format for newer versions of Flutter, require 1.10. diff --git a/README.md b/README.md index 230d47c..5a8c8a8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A Flutter plugin for manipulating Android WindowManager LayoutParams dynamically at application run-time. -![Example App Use](screenshot.jpg) +Example App Use ## Motivation @@ -88,9 +88,11 @@ please let us know in the [issue tracker][tracker]. As `flutter_windowmanager` only wraps and exposes an underlying Android-specific interface, there is no iOS support planned or possible. For those interested in cross-platform `FLAG_SECURE` functionality, this functionality has been re-created -in the third-party [secure_application] plugin. +in the third-party [secure_application] package. Cross-platform `FLAG_KEEP_SCREEN_ON` +functionality is provided by the third-party [keep_screen_on] package. [secure_application]: https://pub.dev/packages/secure_application +[keep_screen_on]: https://pub.dev/packages/keep_screen_on ## Features and bugs @@ -101,4 +103,6 @@ Please file feature requests and bugs at the [issue tracker][tracker]. ## License Licensed under the terms of the Apache 2.0 license, the full version of which can be found in the -[LICENSE](LICENSE) file included in the distribution. \ No newline at end of file +[LICENSE] file included in the distribution. + +[LICENSE]: https://raw.githubusercontent.com/adaptant-labs/flutter_windowmanager/master/LICENSE \ No newline at end of file diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index eadedcc..42c4740 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,15 +1,11 @@ - - + addFlags(int flags) async { return await _channel.invokeMethod("addFlags", { "flags": flags, }); } + /// Clears flags [flags] from the WindowManager.LayoutParams static Future clearFlags(int flags) async { return await _channel.invokeMethod("clearFlags", { "flags": flags, diff --git a/pubspec.yaml b/pubspec.yaml index ffe71bd..68d99ab 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_windowmanager description: A Flutter plugin for manipulating Android WindowManager LayoutParams. -version: 0.0.2 +version: 0.1.0 homepage: https://github.com/adaptant-labs/flutter_windowmanager repository: https://github.com/adaptant-labs/flutter_windowmanager issue_tracker: https://github.com/adaptant-labs/flutter_windowmanager/issues diff --git a/screenshot.jpg b/screenshot.jpg deleted file mode 100644 index 7a067c2..0000000 Binary files a/screenshot.jpg and /dev/null differ