@ -264,13 +264,7 @@ class _CMDetailPageState extends State<CMDetailPage> {
if (filePath != null) {
// Show success dialog using the reusable FileSuccessDialog widget
await FileSuccessDialog.show(
context: context,
filePath: filePath,
title: 'Print Successful',
message: 'Your PDF has been generated successfully',
logPrefix: 'printed',
);
await FileSuccessDialog.show(context: context, filePath: filePath, title: 'Export Successful', message: 'Your PDF has been generated successfully', logPrefix: 'printed');
} else if (exportProvider.errorMessage != null) {
if (mounted) {
exportProvider.errorMessage?.showToast;
@ -42,7 +42,7 @@ class FileSuccessDialog {
Align(
alignment: Alignment.topRight,
child: 'clear'.toSvgAsset(
color: AppColor.iconColor(context),
color: AppColor.icon2Color(context),
width: 18,
height: 18,
).onPress(() {
@ -89,9 +89,9 @@ class FileSuccessDialog {
}
},
label: 'Open',
buttonColor: AppColor.primary10,
// buttonColor: AppColor.primary10,
showIcon: true,
icon: const Icon(Icons.folder_open, color: Colors.white),
icon: Icon(Icons.folder_open, color: AppColor.background(context)),
height: 48,
),