mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 11:58:50 +00:00
@ -172,12 +172,15 @@ class _StreamPage extends State<StreamPage> with RouteAware {
|
|||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
constraints: BoxConstraints.expand(),
|
constraints: BoxConstraints.expand(),
|
||||||
builder: (ctx) {
|
builder: (context) {
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
primary: false,
|
primary: false,
|
||||||
child: ZapWidget(
|
child: ZapWidget(
|
||||||
pubkey: stream.info.host,
|
pubkey: stream.info.host,
|
||||||
target: stream.event,
|
target: stream.event,
|
||||||
|
onPaid: (_) {
|
||||||
|
context.pop();
|
||||||
|
},
|
||||||
zapTags:
|
zapTags:
|
||||||
// tag goal onto zap request
|
// tag goal onto zap request
|
||||||
stream.info.goal != null
|
stream.info.goal != null
|
||||||
|
@ -283,6 +283,7 @@ class _ZapWidget extends State<ZapWidget> {
|
|||||||
zapRequest: zapRequest,
|
zapRequest: zapRequest,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// auto pay with NWC
|
||||||
final wallet = await loginData.value?.getWallet();
|
final wallet = await loginData.value?.getWallet();
|
||||||
if (wallet != null && invoice != null) {
|
if (wallet != null && invoice != null) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user