From 184422cc12f160ed99dfefb0212445b018aad429 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Sat, 24 Jun 2023 20:43:11 +0530 Subject: [PATCH] chore: prepare for v2.0.0 Signed-off-by: xsahil03x --- CHANGELOG.md | 124 ++++++++++++++++++++++++------------------- example/pubspec.yaml | 2 +- pubspec.yaml | 17 ++++-- 3 files changed, 85 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99e31b3..a348f2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,76 +1,92 @@ -1.8.0 +## 2.0.0 - 1. Fixed pub scoring errors +🚨 Breaking - 2. Upgraded flare_flutter dependency. +- The `NetworkGiffyDialog` class has been replaced with the `GiffyDialog.image` constructor. +- The `image` property in the old API is now can be set using the `Image.network` in the new API. +- The `AssetGiffyDialog` class has been replaced with the `GiffyDialog.image` constructor. +- The `image` property in the old API is now can be set using the `Image.asset` in the new API. +- The `FlareGiffyDialog` class has been replaced with the `GiffyDialog.rive` constructor. +- The `flarePath` and `flareAnimation` properties in the old API is now can be set using the `rive` property of + type `RiveAnimation` in the new API. +- The `description` property in the old API is now can be set using the `content` widget in the new API. +- The `onOkButtonPressed` and `onCancelButtonPressed` properties in the old API are replaced with the `actions` + property in the new API to handle button actions. +- The `onlyOkButton`, `onlyCancelButton`, `buttonOkText`, `buttonCancelText` and all the other button + related properties in the old API is no longer available and has been replaced with the `actions` property in the + new API to handle button actions. +- The `cornerRadius` property in the old API is now can be set using the `shape` property in the new API. +- A new `GiffyDialog.lottie` constructor has been added to support Lottie animations. -1.7.0 +## 1.8.0 - 1. Added ability to have only Cancel button, - just like only OK button. Thanks to (@SaadBinShahid) - - 2. Upgraded flare_flutter dependency. +- Fixed pub scoring errors +- Upgraded flare_flutter dependency. -1.6.1 +## 1.7.0 - Minor Improvements. +- Added ability to have only Cancel button, just like only OK button. Thanks to (@SaadBinShahid) +- Upgraded flare_flutter dependency. -1.6.0 +## 1.6.1 - 1. Added Some more variations for Entry Animation. - - enum EntryAnimation { - DEFAULT, // Center - LEFT, - RIGHT, - TOP, - BOTTOM, - TOP_LEFT, - TOP_RIGHT, - BOTTOM_LEFT, - BOTTOM_RIGHT, - } - - 2. Added a callback for Cancel Button Pressed. - - 3. Added Documentation - - 4. Minor bug fixes +- Minor Improvements. -1.5.0 +## 1.6.0 - Added Entry Animation for dialogs. - - 1: DEFAULT, - 2: LEFT_RIGHT, - 3: RIGHT_LEFT, - 4: TOP_BOTTOM, - 5: BOTTOM_TOP, +- Added Some more variations for Entry Animation. -1.4.0 +```dart +enum EntryAnimation { + DEFAULT, // Center + LEFT, + RIGHT, + TOP, + BOTTOM, + TOP_LEFT, + TOP_RIGHT, + BOTTOM_LEFT, + BOTTOM_RIGHT, +} +``` - Added Landscape dialogs and reduced code size. - -1.3.0 - - Remove dependency from cached_network_image (More Generic). +- Added a callback for Cancel Button Pressed. +- Added Documentation +- Minor bug fixes -1.2.0 +## 1.5.0 - Add widget tests and description. +- Added Entry Animation for dialogs. + * DEFAULT, + * LEFT_RIGHT, + * RIGHT_LEFT, + * TOP_BOTTOM, + * BOTTOM_TOP, -1.1.1 +## 1.4.0 - Fix formatting. +- Added Landscape dialogs and reduced code size. -1.1.0 +## 1.3.0 - Added Boolean to show only OK button. +- Remove dependency from cached_network_image (More Generic). -1.0.1 +## 1.2.0 - Minor Changes. +- Add widget tests and description. -1.0.0 +## 1.1.1 - Initial Release. +- Fix formatting. + +## 1.1.0 + +- Added Boolean to show only OK button. + +## 1.0.1 + +- Minor Changes. + +## 1.0.0 + +- Initial Release. diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 129b340..cd5081d 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.18.0 <4.0.0" dependencies: flutter: diff --git a/pubspec.yaml b/pubspec.yaml index 92b17c2..af6bd9c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: giffy_dialog homepage: https://github.com/xsahil03x/giffy_dialog description: A Flutter package for a quick, handy and beautiful giffy dialogs and bottom sheets. -version: 1.8.0 +version: 2.0.0 repository: https://github.com/xsahil03x/giffy_dialog issue_tracker: https://github.com/xsahil03x/giffy_dialog/issues @@ -14,8 +14,19 @@ dependencies: sdk: flutter rive: ^0.11.3 lottie: ^2.4.0 - + dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 \ No newline at end of file + flutter_lints: ^2.0.0 + +topics: + - dialog + - bottomsheet + - giffy-dialog + - rive-dialog + - lottie-dialog + +screenshots: + - description: 'Package Demo' + path: asset/package_demo.gif \ No newline at end of file