File tree Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1+ ## 0.3.1
2+
3+ - Add ` showDialog2020 ` , which wraps ` showModal ` with ` FadeScaleTransitionConfiguration() ` .
4+
15## 0.3.0
26
37- Use ` showModal ` with ` FadeScaleTransitionConfiguration ` of [ animations] ( https://pub.dev/packages/animations ) for Material alert dialog
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
77 path: ".."
88 relative: true
99 source: path
10- version: "0.3.0+ 1"
10+ version: "0.3.1"
1111 animations:
1212 dependency: transitive
1313 description:
Original file line number Diff line number Diff line change 11export 'alert_dialog_action.dart' ;
22export 'show_alert_dialog.dart' ;
3+ export 'show_dialog.dart' ;
34export 'show_ok_alert_dialog.dart' ;
45export 'show_ok_cancel_alert_dialog.dart' ;
Original file line number Diff line number Diff line change @@ -44,11 +44,8 @@ Future<T> showAlertDialog<T>({
4444 ),
4545 ),
4646 )
47- : showModal (
47+ : showDialog2020 (
4848 context: context,
49- configuration: FadeScaleTransitionConfiguration (
50- barrierDismissible: barrierDismissible,
51- ),
5249 builder: (context) => AlertDialog (
5350 title: titleText,
5451 content: messageText,
Original file line number Diff line number Diff line change 1+ import 'package:animations/animations.dart' ;
2+ import 'package:flutter/material.dart' ;
3+
4+ Future <T > showDialog2020 <T >({
5+ @required BuildContext context,
6+ bool useRootNavigator = true ,
7+ WidgetBuilder builder,
8+ }) {
9+ return showModal <T >(
10+ context: context,
11+ configuration: FadeScaleTransitionConfiguration (),
12+ useRootNavigator: useRootNavigator,
13+ builder: builder,
14+ );
15+ }
Original file line number Diff line number Diff line change 11name : adaptive_dialog
22description : Show alert dialog or modal action sheet adaptively according to platform.
3- version : 0.3.0+ 1
3+ version : 0.3.1
44homepage : https://github.com/mono0926/adaptive_dialog
55environment :
66 sdk : " >=2.6.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments