showLoading static method

void showLoading([
  1. String? message
])

Implementation

static void showLoading([String? message]) {
  Get.dialog(
    Dialog(
      child: Padding(
        padding: const EdgeInsets.all(16.0),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            CircularProgressIndicator(),
            SizedBox(
              height: 8.0,
            ),
            Text(message ?? 'Loading....'),
          ],
        ),
      ),
    ),
  );
}