Fixed title text and icon and added toast

This commit is contained in:
llsajjad
2025-09-06 14:41:55 +03:30
parent 2fbd8018c8
commit 77ce9560b1
44 changed files with 169 additions and 152 deletions
+24
View File
@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import 'package:toastification/toastification.dart';
class AppToast {
static void success(BuildContext context, String message) {
toastification.show(
context: context,
type: ToastificationType.success,
style: ToastificationStyle.fillColored,
title: Text(message),
autoCloseDuration: const Duration(seconds: 3),
);
}
static void error(BuildContext context, String message) {
toastification.show(
context: context,
type: ToastificationType.error,
style: ToastificationStyle.fillColored,
title: Text(message),
autoCloseDuration: const Duration(seconds: 3),
);
}
}