Skip to content

Commit 8f99e98

Browse files
committed
Fix showTextAnswerDialog
1 parent e764f6f commit 8f99e98

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.2
2+
3+
- Fix showTextAnswerDialog
4+
15
## 0.2.1
26

37
- Add isDestructiveAction to showTextInputDialog and showTextAnswerDialog

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
path: ".."
88
relative: true
99
source: path
10-
version: "0.2.1"
10+
version: "0.2.2"
1111
archive:
1212
dependency: transitive
1313
description:

lib/src/text_input_dialog/text_answer_dialog.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ Future<bool> showTextAnswerDialog({
2929
style: style,
3030
);
3131
final text = texts == null ? null : texts[0];
32+
if (text == null) {
33+
return false;
34+
}
3235
if (text == keyword) {
3336
return true;
3437
}
35-
final result = showOkCancelAlertDialog(
38+
final result = await showOkCancelAlertDialog(
3639
context: context,
3740
title: retryTitle,
3841
message: retryMessage,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: adaptive_dialog
22
description: Show alert dialog or modal action sheet adaptively according to platform.
3-
version: 0.2.1
3+
version: 0.2.2
44
homepage: https://github.com/mono0926/adaptive_dialog
55
environment:
66
sdk: ">=2.6.0 <3.0.0"

0 commit comments

Comments
 (0)