Files
Traders_Circuit/lib/Utils/dialogs.dart
Rajshinde046 6fd6ea9535 color change
2024-05-10 13:19:19 +05:30

32 lines
778 B
Dart

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:get/get.dart';
class utils {
static showToast(String? msg) {
if (msg != null && msg != "null" && msg.isNotEmpty) {
Fluttertoast.showToast(msg: msg);
}
}
static loader() {
Get.dialog(
Dialog(
elevation: 0,
backgroundColor: Colors.transparent,
child: WillPopScope(
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CircularProgressIndicator(
color: Color(0xFF0093FF),
),
],
),
onWillPop: () async => false),
),
barrierDismissible: false,
);
}
}