From 16a79b039b753ca5c1ac3bf15f07047a3bd597f3 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 17 May 2026 16:06:44 +0300 Subject: [PATCH] improvements --- lib/modules/cm_module/cm_detail_page.dart | 8 +------- .../export_module/widgets/file_success_dialog.dart | 6 +++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/modules/cm_module/cm_detail_page.dart b/lib/modules/cm_module/cm_detail_page.dart index 4af6c299..61135f6f 100644 --- a/lib/modules/cm_module/cm_detail_page.dart +++ b/lib/modules/cm_module/cm_detail_page.dart @@ -264,13 +264,7 @@ class _CMDetailPageState extends State { 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; diff --git a/lib/modules/export_module/widgets/file_success_dialog.dart b/lib/modules/export_module/widgets/file_success_dialog.dart index 94b07e2f..015ff7e0 100644 --- a/lib/modules/export_module/widgets/file_success_dialog.dart +++ b/lib/modules/export_module/widgets/file_success_dialog.dart @@ -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, ), ),