mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: Payjoin button not showing (#2272)
This commit is contained in:
parent
40084ec532
commit
1b2e3f2ee1
1 changed files with 22 additions and 16 deletions
|
@ -210,24 +210,30 @@ class QRWidget extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (addressListViewModel.payjoinEndpoint.isNotEmpty) ...[
|
Observer(
|
||||||
Padding(
|
builder: (_) => Offstage(
|
||||||
padding: EdgeInsets.only(top: 12),
|
offstage: addressListViewModel.payjoinEndpoint.isEmpty,
|
||||||
child: PrimaryImageButton(
|
child: Padding(
|
||||||
onPressed: () {
|
padding: EdgeInsets.only(top: 12),
|
||||||
Clipboard.setData(ClipboardData(
|
child: PrimaryImageButton(
|
||||||
text: addressListViewModel.payjoinEndpoint));
|
onPressed: () {
|
||||||
showBar<void>(context, S.of(context).copied_to_clipboard);
|
Clipboard.setData(
|
||||||
},
|
ClipboardData(text: addressUri.toString()));
|
||||||
image: Image.asset('assets/images/payjoin.png', width: 25,),
|
showBar<void>(context, S.of(context).copied_to_clipboard);
|
||||||
text: S.of(context).copy_payjoin_url,
|
},
|
||||||
color: Theme.of(context).cardColor,
|
image: Image.asset(
|
||||||
textColor: Theme.of(context)
|
'assets/images/payjoin.png',
|
||||||
.extension<CakeTextTheme>()!
|
width: 25,
|
||||||
.buttonTextColor,
|
),
|
||||||
|
text: S.of(context).copy_payjoin_url,
|
||||||
|
color: Theme.of(context).cardColor,
|
||||||
|
textColor: Theme.of(context)
|
||||||
|
.extension<CakeTextTheme>()!
|
||||||
|
.buttonTextColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue