mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Fix Share on iPad and Mac "https://pub.dev/packages/share_plus#known-issues"
This commit is contained in:
parent
e67b484613
commit
1b42d2b61c
3 changed files with 24 additions and 4 deletions
|
@ -100,7 +100,14 @@ class AddressPage extends BasePage {
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
iconSize: 25,
|
iconSize: 25,
|
||||||
onPressed: () => Share.share(addressListViewModel.address.address),
|
onPressed: () {
|
||||||
|
final box = context.findRenderObject() as RenderBox?;
|
||||||
|
|
||||||
|
Share.share(
|
||||||
|
addressListViewModel.address.address,
|
||||||
|
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
||||||
|
);
|
||||||
|
},
|
||||||
icon: shareImage,
|
icon: shareImage,
|
||||||
),
|
),
|
||||||
) : null;
|
) : null;
|
||||||
|
|
|
@ -101,7 +101,14 @@ class ReceivePage extends BasePage {
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
iconSize: 25,
|
iconSize: 25,
|
||||||
onPressed: () => Share.share(addressListViewModel.address.address),
|
onPressed: () {
|
||||||
|
final box = context.findRenderObject() as RenderBox?;
|
||||||
|
|
||||||
|
Share.share(
|
||||||
|
addressListViewModel.address.address,
|
||||||
|
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
||||||
|
);
|
||||||
|
},
|
||||||
icon: shareImage
|
icon: shareImage
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -159,8 +159,14 @@ class WalletSeedPage extends BasePage {
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(right: 8.0),
|
padding: EdgeInsets.only(right: 8.0),
|
||||||
child: PrimaryButton(
|
child: PrimaryButton(
|
||||||
onPressed: () =>
|
onPressed: () {
|
||||||
Share.share(walletSeedViewModel.seed),
|
final box = context.findRenderObject() as RenderBox?;
|
||||||
|
|
||||||
|
Share.share(
|
||||||
|
walletSeedViewModel.seed,
|
||||||
|
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
||||||
|
);
|
||||||
|
},
|
||||||
text: S.of(context).save,
|
text: S.of(context).save,
|
||||||
color: Colors.green,
|
color: Colors.green,
|
||||||
textColor: Colors.white),
|
textColor: Colors.white),
|
||||||
|
|
Loading…
Reference in a new issue