class LoadingDialog extends Dialog { String text; LoadingDialog({Key key, @required this.text}) : super(key: key); @override Widget build(BuildContext context) { return new Material( //创建透明层 type: MaterialType.transparency, //透明类型 child: new Center( //保证控件居中效果 child: new SizedBox( width: 100.0, height: 100.0, child: new Container( decoration: ShapeDecoration( color: Color(0xffffffff), shape: RoundedRectangleBorder( borderRadius: BorderRadius.all( Radius.circular(8.0), ), ), ), child: new Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: <Widget>[ new CircularProgressIndicator(), new Padding( padding: const EdgeInset
flutter 网络加载框 LoadingDialog
最新推荐文章于 2024-05-27 14:00:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)