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); Assets.svg.share,
}, width: 14,
style: Theme.of(context) height: 14,
.extension<StackColors>()! color: Theme.of(context)
.getSecondaryEnabledButtonStyle(context), .extension<StackColors>()!
child: Row( .buttonTextSecondary,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Center(
child: 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);
},
), ),
), ),
), ),