TF-913 Fix button text line break in composer overlay
This commit is contained in:
@@ -236,33 +236,38 @@ class ComposerView extends GetWidget<ComposerController>
|
|||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
padding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.center,
|
child: SingleChildScrollView(
|
||||||
children: [
|
scrollDirection: Axis.horizontal,
|
||||||
buildTextButton(
|
child: Row(mainAxisAlignment: MainAxisAlignment.center,
|
||||||
AppLocalizations.of(context).cancel,
|
children: [
|
||||||
textStyle: const TextStyle(fontWeight: FontWeight.w500, fontSize: 17, color: AppColor.lineItemListColor),
|
const SizedBox(width: 24),
|
||||||
backgroundColor: AppColor.emailAddressChipColor,
|
buildButtonWrapText(
|
||||||
width: 150,
|
AppLocalizations.of(context).cancel,
|
||||||
height: 44,
|
textStyle: const TextStyle(fontWeight: FontWeight.w500, fontSize: 17, color: AppColor.lineItemListColor),
|
||||||
radius: 10,
|
bgColor: AppColor.emailAddressChipColor,
|
||||||
onTap: () => controller.closeComposerWeb()),
|
minWidth: 150,
|
||||||
const SizedBox(width: 12),
|
|
||||||
buildTextButton(
|
|
||||||
AppLocalizations.of(context).save_to_drafts,
|
|
||||||
textStyle: const TextStyle(fontWeight: FontWeight.w500, fontSize: 17, color: AppColor.colorTextButton),
|
|
||||||
backgroundColor: AppColor.emailAddressChipColor,
|
|
||||||
width: 150,
|
|
||||||
height: 44,
|
height: 44,
|
||||||
radius: 10,
|
radius: 10,
|
||||||
onTap: () => controller.saveEmailAsDrafts(context)),
|
onTap: () => controller.closeComposerWeb()),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
buildTextButton(
|
buildButtonWrapText(
|
||||||
AppLocalizations.of(context).send,
|
AppLocalizations.of(context).save_to_drafts,
|
||||||
width: 150,
|
textStyle: const TextStyle(fontWeight: FontWeight.w500, fontSize: 17, color: AppColor.colorTextButton),
|
||||||
height: 44,
|
bgColor: AppColor.emailAddressChipColor,
|
||||||
radius: 10,
|
minWidth: 150,
|
||||||
onTap: () => controller.sendEmailAction(context)),
|
height: 44,
|
||||||
]
|
radius: 10,
|
||||||
|
onTap: () => controller.saveEmailAsDrafts(context)),
|
||||||
|
const SizedBox(width: 12),
|
||||||
|
buildButtonWrapText(
|
||||||
|
AppLocalizations.of(context).send,
|
||||||
|
minWidth: 150,
|
||||||
|
height: 44,
|
||||||
|
radius: 10,
|
||||||
|
onTap: () => controller.sendEmailAction(context)),
|
||||||
|
const SizedBox(width: 24),
|
||||||
|
]
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user