1. showDialog<void>(
    2. context: context,
    3. barrierDismissible: true,
    4. builder: (context){
    5. return Dialog(
    6. child: Container(
    7. height: my_height * 60,
    8. child: Column(
    9. children: <Widget>[
    10. Container(
    11. height: (my_height * 60) - 70,
    12. padding: EdgeInsets.only(top : 15.0, bottom: 15, right: 25, left : 25) ,
    13. child: ListView(
    14. children: <Widget>[
    15. ],
    16. ),
    17. ),
    18. Container(
    19. height: 40,
    20. width: my_width * 90,
    21. margin : EdgeInsets.only(right : 25 , left: 25, top: 15),
    22. decoration: BoxDecoration(
    23. color: Colors.blue,
    24. borderRadius: BorderRadius.circular(50),
    25. ),
    26. child: FlatButton(
    27. onPressed: (){
    28. Navigator.pop(context); // 点击返回上一级
    29. },
    30. child: new Text("关闭", style: TextStyle(color: Colors.white),)
    31. ),
    32. )
    33. ],
    34. ),
    35. ),
    36. );
    37. },
    38. );