buildLoading method

  1. @protected
Widget buildLoading(
  1. BuildContext context
)

The widget shown while the view model initialises or ViewModel.loading is active. Defaults to NavigationLogic.defaultLoading.

Overriding this also opts the widget out of snapshot loading (see useSnapshotLoading), so a custom loading view always wins.

Implementation

@protected
Widget buildLoading(BuildContext context) {
  return const _DefaultLoading(overlay: false);
}