Skip to content

Commit

Permalink
chore: navigation - add isEmbedded param
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Oct 18, 2024
1 parent fad04e9 commit 08a09fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions lib/ui/views/main_screen/layouts/bottom_navigation_bar.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:ui';

import 'package:aedex/application/app_embedded.dart';
import 'package:aedex/ui/views/farm_lock/layouts/farm_lock_sheet.dart';
import 'package:aedex/ui/views/main_screen/bloc/provider.dart';
import 'package:aedex/ui/views/pool_list/layouts/pool_list_sheet.dart';
Expand Down Expand Up @@ -34,6 +35,7 @@ class _BottomNavigationBarMainScreenState
if (widget.navDrawerIndex == NavigationIndex.welcome) {
return const SizedBox();
}
final isAppEmbedded = ref.watch(isAppEmbeddedProvider);

return ClipRRect(
child: BackdropFilter(
Expand Down Expand Up @@ -177,8 +179,12 @@ class _BottomNavigationBarMainScreenState
.toString()
.toLowerCase()
.contains('swap.archethic'))
? 'https://bridge.archethic.net'
: 'https://bridge.testnet.archethic.net',
? isAppEmbedded
? 'https://bridge.archethic.net?isEmbedded=true'
: 'https://bridge.archethic.net'
: isAppEmbedded
? 'https://bridge.testnet.archethic.net?isEmbedded=true'
: 'https://bridge.testnet.archethic.net',
),
webOnlyWindowName: '_self',
);
Expand Down
8 changes: 6 additions & 2 deletions lib/ui/views/main_screen/layouts/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,12 @@ class Header extends ConsumerWidget {
.toString()
.toLowerCase()
.contains('swap.archethic'))
? 'https://bridge.archethic.net'
: 'https://bridge.testnet.archethic.net',
? isAppEmbedded
? 'https://bridge.archethic.net?isEmbedded=true'
: 'https://bridge.archethic.net'
: isAppEmbedded
? 'https://bridge.testnet.archethic.net?isEmbedded=true'
: 'https://bridge.testnet.archethic.net',
),
webOnlyWindowName: '_self',
);
Expand Down

0 comments on commit 08a09fa

Please sign in to comment.