1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| RaisedButton( child: Text("showGeneralDialog"), onPressed: () { showGeneralDialog( context: context, barrierColor: Colors.black.withOpacity(.5), barrierDismissible: true, barrierLabel: '', transitionDuration: Duration(milliseconds: 200), transitionBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) { return ScaleTransition(scale: animation, child: child); }, pageBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) { return Center( child: Container( height: 300, width: 250, color: Colors.lightGreenAccent, ), ); }); })
|