loading method

Widget loading(
  1. BuildContext context
)

This widget is used whenever your widget uses the boot method to load data. When data is loading via a Future in the boot method, this widget will be displayed to the user.

You can override it in your NyPage class to custom the look.

Implementation

Widget loading(BuildContext context) {
  return Scaffold(
    body: loadingWidget,
  );
}