From f1512170a2711a669b168314a6c877f59151050e Mon Sep 17 00:00:00 2001 From: aemreesen27 Date: Fri, 9 Dec 2022 12:43:39 +0300 Subject: [PATCH] assets path edited and pub upgrade. --- CHANGELOG.md | 3 ++ README.md | 4 +- example/README.md | 2 +- example/{assets => images}/completed.png | Bin example/lib/main.dart | 2 +- example/pubspec.lock | 46 ++++++++--------------- example/pubspec.yaml | 2 +- {assets => images}/completed.png | Bin lib/progress_dialog.dart | 2 +- pubspec.lock | 44 ++++++++-------------- pubspec.yaml | 5 +-- 11 files changed, 42 insertions(+), 68 deletions(-) rename example/{assets => images}/completed.png (100%) rename {assets => images}/completed.png (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c4bfd..426318d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.0.9] - 09.12.2022 +* Assets path edited. + ## [1.0.8] - 20.05.2022 * Bug Fix. diff --git a/README.md b/README.md index d5f3a57..5ed0977 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Progress dialog package for flutter You must add the library as a dependency to your project. ```yaml dependencies: - sn_progress_dialog: ^1.0.8 + sn_progress_dialog: ^1.0.9 ``` You should then run `flutter packages get` @@ -56,7 +56,7 @@ pd.update(progress value); ```dart completed: Completed(), // To use with default values - completed: Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("assets/completed.png"), closedDelay: 2500) + completed: Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("image path"), closedDelay: 2500) ``` ### Other Properties diff --git a/example/README.md b/example/README.md index e84e9b8..e6a8061 100644 --- a/example/README.md +++ b/example/README.md @@ -106,7 +106,7 @@ class Home extends StatelessWidget { msg: 'File Downloading...', completed: Completed(), // Completed values can be customized - // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("assets/completed.png"), closedDelay: 2500,), + // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("images/completed.png"), closedDelay: 2500,), progressBgColor: Colors.transparent, ); for (int i = 0; i <= 100; i++) { diff --git a/example/assets/completed.png b/example/images/completed.png similarity index 100% rename from example/assets/completed.png rename to example/images/completed.png diff --git a/example/lib/main.dart b/example/lib/main.dart index 14e6151..bb95e3d 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -103,7 +103,7 @@ class Home extends StatelessWidget { msg: 'File Downloading...', completed: Completed(), // Completed values can be customized - // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("assets/completed.png"), closedDelay: 2500,), + // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("images/completed.png"), closedDelay: 2500,), progressBgColor: Colors.transparent, ); for (int i = 0; i <= 100; i++) { diff --git a/example/pubspec.lock b/example/pubspec.lock index e5e0f00..80553f3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.2" + version: "2.9.0" boolean_selector: dependency: transitive description: @@ -21,28 +21,21 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" + version: "1.2.1" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" cupertino_icons: dependency: "direct main" description: @@ -56,7 +49,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" flutter: dependency: "direct main" description: flutter @@ -73,28 +66,28 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.11" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.5" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.7.0" + version: "1.8.0" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -106,14 +99,14 @@ packages: path: ".." relative: true source: path - version: "1.0.8" + version: "1.0.9" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.9.0" stack_trace: dependency: transitive description: @@ -134,35 +127,28 @@ packages: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.2.1" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" + version: "0.4.12" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.17.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 8f21542..2ae99d0 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -49,7 +49,7 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - - completed.png + - images/completed.png # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. diff --git a/assets/completed.png b/images/completed.png similarity index 100% rename from assets/completed.png rename to images/completed.png diff --git a/lib/progress_dialog.dart b/lib/progress_dialog.dart index 8ca68a6..d7c0039 100644 --- a/lib/progress_dialog.dart +++ b/lib/progress_dialog.dart @@ -150,7 +150,7 @@ class ProgressDialog { height: 40, image: completed.completedImage ?? AssetImage( - "assets/completed.png", + "images/completed.png", package: "sn_progress_dialog", ), ) diff --git a/pubspec.lock b/pubspec.lock index 1df6b69..60cce15 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.2" + version: "2.9.0" boolean_selector: dependency: transitive description: @@ -21,35 +21,28 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" + version: "1.2.1" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" flutter: dependency: "direct main" description: flutter @@ -66,28 +59,28 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.11" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.5" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.7.0" + version: "1.8.0" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -99,7 +92,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.9.0" stack_trace: dependency: transitive description: @@ -120,35 +113,28 @@ packages: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.2.1" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" + version: "0.4.12" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.17.0" diff --git a/pubspec.yaml b/pubspec.yaml index e01c2e2..7d6d053 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: sn_progress_dialog description: Customizable progress dialog package for Flutter.(Captures the progress value) -version: 1.0.8 +version: 1.0.9 author: A.Emre ESEN homepage: https://github.com/emreesen27/Flutter-Progress-Dialog.git @@ -24,8 +24,7 @@ flutter: # To add assets to your package, add an assets section, like this: assets: - - completed.png -# - images/a_dot_ham.jpeg + - images/completed.png # # For details regarding assets in packages, see # https://flutter.dev/assets-and-images/#from-packages