customSnackBar function
消息通知
Implementation
void customSnackBar(String? title, String? message) {
Get.snackbar(
title ?? "-",
message ?? "-",
duration: const Duration(seconds: 2),
backgroundColor: Colors.blueGrey,
colorText: Colors.white,
icon: const Icon(
Icons.notifications,
color: Colors.white,
),
);
}