From 2bcad277123107ade6519b9cca0ee33d271c7577 Mon Sep 17 00:00:00 2001 From: FaizHashmi Date: Mon, 12 Oct 2026 17:46:28 +0300 Subject: [PATCH] Fixes --- lib/ui/dialogs/id/business_card_dialog.dart | 125 +++++++++++--------- 1 file changed, 71 insertions(+), 54 deletions(-) diff --git a/lib/ui/dialogs/id/business_card_dialog.dart b/lib/ui/dialogs/id/business_card_dialog.dart index e24c102..d62b826 100644 --- a/lib/ui/dialogs/id/business_card_dialog.dart +++ b/lib/ui/dialogs/id/business_card_dialog.dart @@ -12,7 +12,8 @@ class BusinessCardDialog extends StatelessWidget { final String? qrBase64; final EmpBusinessCardInfoModel? employeeInfo; - const BusinessCardDialog({Key? key, this.qrBase64, this.employeeInfo}) : super(key: key); + const BusinessCardDialog({Key? key, this.qrBase64, this.employeeInfo}) + : super(key: key); @override Widget build(BuildContext context) { @@ -20,62 +21,78 @@ class BusinessCardDialog extends StatelessWidget { quarterTurns: 1, child: AspectRatio( aspectRatio: 3.5 / 2, - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, + child: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Image.asset( + "assets/images/logos/bn_cloud_soloution.jpg", + width: 94, + height: 91.15, + ).paddingOnly(top: 4), + ], + ), + ), + Image.memory( + Utils.getPostBytes(qrBase64 ?? ""), + width: 129, + height: 129, + ), + ], + ).paddingOnly(top: 26, left: 8.5), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + (employeeInfo?.fullName ?? "") + .toText23(isBold: true) + .paddingOnly(top: 15), + (employeeInfo?.pPositionTitle ?? "").toText17( + color: MyColors.grey57Color, + ), + 30.height, + Row( + children: [ + const Icon( + Icons.email, + size: 17.5, + color: MyColors.grey3AColor, + ).paddingOnly(right: 11.5), + ("${LocaleKeys.email.tr()}: ").toText18( + color: MyColors.grey57Color, + ), + (employeeInfo?.pEmailAddress ?? "").toText18(), + ], + ), + Row( children: [ - Image.asset( - "assets/images/logos/bn_cloud_soloution.jpg", - width: 94, - height: 91.15, - ).paddingOnly(top: 4), + const Icon( + Icons.call, + size: 17.5, + color: MyColors.grey3AColor, + ).paddingOnly(right: 11.5), + ("${LocaleKeys.mobile.tr()}: ").toText18( + color: MyColors.grey57Color, + ), + (employeeInfo?.pMobilePhoneNumber ?? "").toText18(), ], ), - ), - Image.memory( - Utils.getPostBytes(qrBase64 ?? ""), - width: 129, - height: 129, - ), - ], - ).paddingOnly(top: 26, left: 8.5), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - (employeeInfo?.fullName ?? "").toText23(isBold: true).paddingOnly(top: 15), - (employeeInfo?.pPositionTitle ?? "").toText17( - color: MyColors.grey57Color, - ), - 30.height, - Row( - children: [ - const Icon(Icons.email, size: 17.5, color: MyColors.grey3AColor).paddingOnly(right: 11.5), - ("${LocaleKeys.email.tr()}: ").toText18(color: MyColors.grey57Color), - (employeeInfo?.pEmailAddress ?? "").toText18(), - ], - ), - Row( - children: [ - const Icon(Icons.call, size: 17.5, color: MyColors.grey3AColor).paddingOnly(right: 11.5), - ("${LocaleKeys.mobile.tr()}: ").toText18(color: MyColors.grey57Color), - (employeeInfo?.pMobilePhoneNumber ?? "").toText18(), - ], - ), - ], - ), - ], - ).paddingOnly(right: 13, left: 32, bottom: 28), + ], + ), + ], + ).paddingOnly(right: 13, left: 32, bottom: 28), + ), ), ); }