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