showLoading static method

void showLoading(
  1. BuildContext context, {
  2. String? message,
})

Shows a "Loading" snackbar

Implementation

static void showLoading(BuildContext context, {String? message}) {
  SavePointsSnackbar.show(
    context,
    title: message ?? 'Loading...',
    subtitle: 'Please wait',
    type: SnackbarType.info,
    showProgressIndicator: true,
    duration: const Duration(seconds: 30), // Long duration for loading
  );
}