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