showProgressIndicator static method

Scaffold showProgressIndicator({
  1. required String title,
  2. bool centerTitle = false,
})

A CircularProgressIndicator can be used to display while processing in background

Implementation

static Scaffold showProgressIndicator(
    {required String title, bool centerTitle = false}) {
  return Scaffold(
    appBar: AppBar(title: Text(title), centerTitle: centerTitle),
    body: ESProgressIndicator(),
  );
}