diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 9f8e373..e3170c4 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-16 14:26:12.219470","version":"3.0.5"} \ 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-16 14:28:08.329352","version":"3.0.5"} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c5fff7b..9b5cac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,3 +18,11 @@ ## 0.3.0 * Add ShowTypeModel for types the ours widget + +# 0.3.1 + +* Add change log + +# 0.3.2 + +* Teste description for use \ No newline at end of file diff --git a/README.md b/README.md index aa8e5b0..76d6a16 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ dependencies: app_version_update: ``` +to use this app you need to have the app hosted in stores. + +To test, you can manually downgrade your pubspec.yaml from your ```version:``` , when you run your ```local version``` it will be different from the ```store version``` + ## Usage ```dart @@ -47,19 +51,19 @@ Customize the Alert Dialog AppUpdateVersion.showAlertUpdate({ @required AppVersionResult? appVersionResult, @required BuildContext? context, - String? title, //default 'New version available', - String? content, //default'Would you like to update your application?', - String? cancelButtonText, //default'Update later', - String? updateButtonText, //default 'Update', - ShowModalType? modalType, //default ShowModalType.alert_dialog, unique its working in momnet - Color? backgroundColor , //default Colors.white, - TextStyle? cancelTextStyle, //default const TextStyle(color: Colors.red), - TextStyle? updateTextStyle , //default const TextStyle(color: Colors.green), - TextStyle? titleTextStyle , //default + 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, + Color? backgroundColor = Colors.white, + TextStyle? cancelTextStyle = const TextStyle(color: Colors.red), + TextStyle? updateTextStyle = const TextStyle(color: Colors.green), + TextStyle? titleTextStyle = const TextStyle(fontSize: 18.0, fontWeight: FontWeight.w700), - TextStyle? contentTextStyle , //default null, - ButtonStyle? cancelButtonStyle , //default null , - ButtonStyle? updateButtonStyle , //default null, + TextStyle? contentTextStyle, + ButtonStyle? cancelButtonStyle, + ButtonStyle? updateButtonStyle, }) // ShowModalType.bottom_sheet (available soon ) // ShowModalType.page (available soon ) diff --git a/lib/app_version_update.dart b/lib/app_version_update.dart index 1bea964..8dc085d 100644 --- a/lib/app_version_update.dart +++ b/lib/app_version_update.dart @@ -8,7 +8,6 @@ import 'package:app_version_update/widgets/alert_dialog_update.dart'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'package:package_info_plus/package_info_plus.dart'; - import 'core/values/consts/consts.dart'; class AppVersionUpdate { diff --git a/pubspec.yaml b/pubspec.yaml index ce5ecd5..e94b33d 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: 0.3.0 +version: 0.3.2 homepage: https://github.com/kauemurakami/app_version_update environment: