wala_plus
FaizHashmi 2 days ago
parent de57bfd9eb
commit 2bcad27712

@ -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),
),
),
);
}

Loading…
Cancel
Save