How to set size to CircularProgressIndicator?

后端 未结 7 1454
太阳男子
太阳男子 2020-12-08 13:01

I\'m trying to make a loading screen for my application, I\'m using CircularProgressIndicator widget, but I want to know if there\'s a way to make it bigger in

7条回答
  •  死守一世寂寞
    2020-12-08 13:37

    You can wrap your CircularProgressIndicator inside a SizedBox widget

       @override
        Widget build(BuildContext context) {
          return Container(
            child: Center(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  SizedBox(
                    child: CircularProgressIndicator(),
                    height: 200.0,
                    width: 200.0,
                  ),
                  SizedBox(
                    child: CircularProgressIndicator(),
                    height: 50.0,
                    width: 50.0,
                  ),
                  SizedBox(
                    child: CircularProgressIndicator(),
                    height: 10.0,
                    width: 10.0,
                  )
                ],
              ),
            ),
          );
    

提交回复
热议问题