mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-17 20:28:52 +00:00
fix: hide zap button for profiles with no lud16
This commit is contained in:
@ -54,25 +54,28 @@ class _ChatModalWidget extends State<ChatModalWidget> {
|
|||||||
}),
|
}),
|
||||||
icon: Icon(Icons.mood),
|
icon: Icon(Icons.mood),
|
||||||
),
|
),
|
||||||
IconButton.filled(
|
if (widget.profile.lud16?.isNotEmpty ?? false)
|
||||||
color: ZAP_1,
|
IconButton.filled(
|
||||||
style: ButtonStyle(
|
color: ZAP_1,
|
||||||
backgroundColor: WidgetStateColor.resolveWith((_) => LAYER_3),
|
style: ButtonStyle(
|
||||||
|
backgroundColor: WidgetStateColor.resolveWith(
|
||||||
|
(_) => LAYER_3,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
showModalBottomSheet(
|
||||||
|
context: context,
|
||||||
|
builder: (ctx) {
|
||||||
|
return ZapWidget(
|
||||||
|
pubkey: widget.event.pubKey,
|
||||||
|
target: widget.event,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
icon: Icon(Icons.bolt),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
showModalBottomSheet(
|
|
||||||
context: context,
|
|
||||||
builder: (ctx) {
|
|
||||||
return ZapWidget(
|
|
||||||
pubkey: widget.event.pubKey,
|
|
||||||
target: widget.event,
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
icon: Icon(Icons.bolt),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (_showEmojiPicker) ReactionWidget(event: widget.event),
|
if (_showEmojiPicker) ReactionWidget(event: widget.event),
|
||||||
|
Reference in New Issue
Block a user