fix share button on receiving qr generate

This commit is contained in:
julian 2023-02-03 10:26:11 -06:00
parent 19d0cb378d
commit 7f15c1e6f4

View file

@ -218,46 +218,19 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
Center(
child: SizedBox(
width: width,
child: TextButton(
onPressed: () async {
// TODO: add save button as well
await _capturePng(true);
},
style: Theme.of(context)
.extension<StackColors>()!
.getSecondaryEnabledButtonStyle(context),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Center(
child: SvgPicture.asset(
child: SecondaryButton(
label: "Share",
icon: SvgPicture.asset(
Assets.svg.share,
width: 14,
height: 14,
),
),
const SizedBox(
width: 4,
),
Column(
children: [
Text(
"Share",
textAlign: TextAlign.center,
style: STextStyles.button(context).copyWith(
color: Theme.of(context)
.extension<StackColors>()!
.buttonTextSecondary,
),
),
const SizedBox(
height: 2,
),
],
),
],
),
onPressed: () async {
await _capturePng(false);
},
),
),
),