Skip to content

Commit

Permalink
release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vantuan88291 committed Mar 22, 2022
1 parent 2295759 commit 419967a
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 19 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@
## [1.0.3] - TODO: Improvement, add unit testing

* Add unit testing: https://github.com/vantuan88291/flutter_dropdown_alert/pull/2 (Contributor: trunghieuvn)
* Fix issue #3: When empty title or message, its will at center vertical
* Fix issue #3: When empty title or message, its will at center vertical

## [1.0.4] - TODO: Fix bug null value when press alert

* Fix issue #6: Null check operator used on a null value when press alert
4 changes: 2 additions & 2 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -127,7 +127,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
21 changes: 14 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -21,7 +21,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.2"
version: "1.0.3"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -80,7 +80,14 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -141,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.8"
typed_data:
dependency: transitive
description:
Expand All @@ -155,7 +162,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.17.0"
7 changes: 7 additions & 0 deletions lib/alert_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class AlertController {
return _tabListener!;
}

bool isCallbackNull() {
if(_tabListener == null) {
return true;
}
return false;
}

static show(String title, String message, TypeAlert type,
[Map<String, dynamic>? payload]) {
instance?._show!(title, message, type, payload);
Expand Down
3 changes: 2 additions & 1 deletion lib/dropdown_alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ class DropdownAlertWidget extends State<DropdownAlert>
if (widget.onTap != null) {
widget.onTap!(this.payload!, this.type!);
}
if (_controller?.getTabListener() != null) {
bool? callback = _controller?.isCallbackNull();
if (callback == false) {
_controller?.getTabListener()(this.payload, this.type!);
}
}
Expand Down
19 changes: 13 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -21,7 +21,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -66,7 +66,14 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -127,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.8"
typed_data:
dependency: transitive
description:
Expand All @@ -141,7 +148,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.17.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_dropdown_alert
description: A dropdown alert package for flutter, help user notify the alert like push notification when call api success, fail or waring.
version: 1.0.3
version: 1.0.4
email: [email protected]
homepage: https://github.com/vantuan88291/flutter_dropdown_alert

Expand Down

0 comments on commit 419967a

Please sign in to comment.