From e825f232d903f516c70d9beafcc7c5389aac3348 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 26 Sep 2022 14:23:27 -0300 Subject: [PATCH] fix doc alert --- .flutter-plugins-dependencies | 2 +- CHANGELOG.md | 5 ++++- README.md | 38 +++++++++++++++++------------------ pubspec.yaml | 2 +- 4 files changed, 25 insertions(+), 22 deletions(-) diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index bfc1826..c8010c9 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus-1.4.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_ios-6.0.17\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"package_info_plus","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus-1.4.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_android-6.0.19\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info_plus_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_macos-1.3.0\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_macos-3.0.1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"package_info_plus_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_linux-1.0.5\\\\","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_linux-3.0.1\\\\","native_build":true,"dependencies":[]}],"windows":[{"name":"package_info_plus_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_windows-2.1.0\\\\","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_windows-3.0.1\\\\","native_build":true,"dependencies":[]}],"web":[{"name":"package_info_plus_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_web-1.0.5\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_web-2.0.13\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":["package_info_plus_linux","package_info_plus_macos","package_info_plus_windows","package_info_plus_web"]},{"name":"package_info_plus_linux","dependencies":[]},{"name":"package_info_plus_macos","dependencies":[]},{"name":"package_info_plus_web","dependencies":[]},{"name":"package_info_plus_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-09-26 13:32:31.859752","version":"3.3.2"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus-1.4.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_ios-6.0.17\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"package_info_plus","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus-1.4.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_android-6.0.19\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info_plus_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_macos-1.3.0\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_macos-3.0.1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"package_info_plus_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_linux-1.0.5\\\\","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_linux-3.0.1\\\\","native_build":true,"dependencies":[]}],"windows":[{"name":"package_info_plus_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_windows-2.1.0\\\\","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_windows-3.0.1\\\\","native_build":true,"dependencies":[]}],"web":[{"name":"package_info_plus_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info_plus_web-1.0.5\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_web-2.0.13\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":["package_info_plus_linux","package_info_plus_macos","package_info_plus_windows","package_info_plus_web"]},{"name":"package_info_plus_linux","dependencies":[]},{"name":"package_info_plus_macos","dependencies":[]},{"name":"package_info_plus_web","dependencies":[]},{"name":"package_info_plus_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-09-26 14:23:17.908077","version":"3.3.2"} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eedd45c..3ef97af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,4 +72,7 @@ * Added docs new widgets ## 2.0.2 -* Update score docs \ No newline at end of file +* Update score docs + +## 2.0.3 +* Fix dialog doc diff --git a/README.md b/README.md index d5ddcd7..dfbd776 100644 --- a/README.md +++ b/README.md @@ -52,25 +52,25 @@ Customize the Alert Dialog ```dart // you also have some options to customize our Alert Dialog -AppUpdateVersion.showAlertUpdate({ - @required AppVersionResult? appVersionResult, - @required BuildContext? context, - String? title = 'New version available', - String? content = 'Would you like to update your application?', - String? cancelButtonText = 'Update later', - String? updateButtonText = 'Update', - ShowModalType? modalType = ShowModalType.alert_dialog, //anothers: page and bottom_sheet - Color? backgroundColor = Colors.white, - TextStyle? cancelTextStyle = const TextStyle(color: Colors.red), - TextStyle? updateTextStyle = const TextStyle(color: Colors.green), - TextStyle? titleTextStyle = const TextStyle( - fontSize: 20.0, fontWeight: FontWeight.w700, color: Colors.black), - ButtonStyle? cancelButtonStyle = const ButtonStyle( - overlayColor: MaterialStatePropertyAll(Colors.black12)), - ButtonStyle? updateButtonStyle = const ButtonStyle( - overlayColor: MaterialStatePropertyAll(Colors.black12), - ), - }) +AppUpdateVersion.showAlertUpdate( + {BuildContext? context, + AppVersionResult? appVersionResult, + bool? mandatory = false, + String? title = 'New version available', + TextStyle titleTextStyle = + const TextStyle(fontSize: 24.0, fontWeight: FontWeight.w500), + String? content = 'Would you like to update your application?', + TextStyle contentTextStyle = + const TextStyle(fontSize: 16.0, fontWeight: FontWeight.w400), + ButtonStyle? cancelButtonStyle = const ButtonStyle( + backgroundColor: MaterialStatePropertyAll(Colors.redAccent)), + ButtonStyle? updateButtonStyle = const ButtonStyle( + backgroundColor: MaterialStatePropertyAll(Colors.green)), + String? cancelButtonText = 'UPDATE LATER', + String? updateButtonText = 'UPDATE', + TextStyle? cancelTextStyle = const TextStyle(color: Colors.white), + TextStyle? updateTextStyle = const TextStyle(color: Colors.white), + Color? backgroundColor = Colors.white}) ``` Customize the our bottom sheet diff --git a/pubspec.yaml b/pubspec.yaml index b38a2d0..d198345 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: app_version_update description: An easy and quick way to check if the local app is updated with the same version in their respective stores (Play Store / Apple Store ). # author: KauĂȘ Tomaz Murakami -version: 2.0.2 +version: 2.0.3 homepage: https://github.com/kauemurakami/app_version_update environment: