improvements

main_production_RSG
Sikander Saleem 1 month ago
parent 0ee21c0011
commit 16a79b039b

@ -264,13 +264,7 @@ class _CMDetailPageState extends State<CMDetailPage> {
if (filePath != null) { if (filePath != null) {
// Show success dialog using the reusable FileSuccessDialog widget // Show success dialog using the reusable FileSuccessDialog widget
await FileSuccessDialog.show( await FileSuccessDialog.show(context: context, filePath: filePath, title: 'Export Successful', message: 'Your PDF has been generated successfully', logPrefix: 'printed');
context: context,
filePath: filePath,
title: 'Print Successful',
message: 'Your PDF has been generated successfully',
logPrefix: 'printed',
);
} else if (exportProvider.errorMessage != null) { } else if (exportProvider.errorMessage != null) {
if (mounted) { if (mounted) {
exportProvider.errorMessage?.showToast; exportProvider.errorMessage?.showToast;

@ -42,7 +42,7 @@ class FileSuccessDialog {
Align( Align(
alignment: Alignment.topRight, alignment: Alignment.topRight,
child: 'clear'.toSvgAsset( child: 'clear'.toSvgAsset(
color: AppColor.iconColor(context), color: AppColor.icon2Color(context),
width: 18, width: 18,
height: 18, height: 18,
).onPress(() { ).onPress(() {
@ -89,9 +89,9 @@ class FileSuccessDialog {
} }
}, },
label: 'Open', label: 'Open',
buttonColor: AppColor.primary10, // buttonColor: AppColor.primary10,
showIcon: true, showIcon: true,
icon: const Icon(Icons.folder_open, color: Colors.white), icon: Icon(Icons.folder_open, color: AppColor.background(context)),
height: 48, height: 48,
), ),
), ),

Loading…
Cancel
Save