In Flutter i try to call a web service to retrieve some data. When service works fills a list and show it on screen. I want to show a CircularProgressIndicator in full screen when if data is null (or trying to get data from service). Now CircularProgressIndicator is on the top on the page.
The code is
Scaffold(
body: Column(children: <Widget>[
SafeArea(child: progress),
loading == false ? rssi : indicator
]),
final indicator = Container(
child: Center(
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(Colors.black),
),
));
I want to show 'indicator' widget below 'progress' widget on the whole screen.
Any help?