Skip to content

Commit

Permalink
Add the option to return back to Apps page when LNURL Webview's are b…
Browse files Browse the repository at this point in the history
…eing loaded.
  • Loading branch information
erdemyerebasmaz committed Jul 18, 2023
1 parent da62d55 commit a615a9d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lib/routes/marketplace/lnurl_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,25 @@ class LNURLWebViewPageState extends State<LNURLWebViewPage> {
@override
Widget build(BuildContext context) {
if (jwtToken == null) {
return const Material(child: Loader());
return Material(
child: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: Text(widget.vendorModel.displayName),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.close,
color: Theme.of(context).iconTheme.color,
),
onPressed: () => Navigator.pop(context))
],
),
body: const Center(child: Loader()),
),
);
}

return VendorWebViewPage(
widget.accountBloc,
"${widget.vendorModel.url}?token=$jwtToken",
Expand Down

0 comments on commit a615a9d

Please sign in to comment.