File tree Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.0
2
+
3
+ - Use ` showModal ` with ` FadeScaleTransitionConfiguration ` of animations for Material alert dialog
4
+
1
5
## 0.2.2
2
6
3
7
- Fix showTextAnswerDialog
Original file line number Diff line number Diff line change @@ -7,7 +7,14 @@ packages:
7
7
path: ".."
8
8
relative: true
9
9
source: path
10
- version: "0.2.2"
10
+ version: "0.3.0"
11
+ animations:
12
+ dependency: transitive
13
+ description:
14
+ name: animations
15
+ url: "https://pub.dartlang.org"
16
+ source: hosted
17
+ version: "1.0.0+5"
11
18
archive:
12
19
dependency: transitive
13
20
description:
Original file line number Diff line number Diff line change 1
1
import 'package:adaptive_dialog/adaptive_dialog.dart' ;
2
+ import 'package:animations/animations.dart' ;
2
3
import 'package:flutter/cupertino.dart' ;
3
4
import 'package:flutter/material.dart' ;
4
5
@@ -43,9 +44,11 @@ Future<T> showAlertDialog<T>({
43
44
),
44
45
),
45
46
)
46
- : showDialog (
47
+ : showModal (
47
48
context: context,
48
- barrierDismissible: barrierDismissible,
49
+ configuration: FadeScaleTransitionConfiguration (
50
+ barrierDismissible: barrierDismissible,
51
+ ),
49
52
builder: (context) => AlertDialog (
50
53
title: titleText,
51
54
content: messageText,
Original file line number Diff line number Diff line change 1
1
# Generated by pub
2
2
# See https://dart.dev/tools/pub/glossary#lockfile
3
3
packages:
4
+ animations:
5
+ dependency: "direct main"
6
+ description:
7
+ name: animations
8
+ url: "https://pub.dartlang.org"
9
+ source: hosted
10
+ version: "1.0.0+5"
4
11
archive:
5
12
dependency: transitive
6
13
description:
Original file line number Diff line number Diff line change 1
1
name : adaptive_dialog
2
2
description : Show alert dialog or modal action sheet adaptively according to platform.
3
- version : 0.2.2
3
+ version : 0.3.0
4
4
homepage : https://github.com/mono0926/adaptive_dialog
5
5
environment :
6
6
sdk : " >=2.6.0 <3.0.0"
7
7
dependencies :
8
8
flutter :
9
9
sdk : flutter
10
+ animations : ^1.0.0+5
10
11
meta : ^1.1.8
11
12
dev_dependencies :
12
13
flutter_test :
You can’t perform that action at this time.
0 commit comments