Skip to content

Commit

Permalink
chore: ✨ Don't display the menu in desktop mode & web mode
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Dec 5, 2024
1 parent 0075cd1 commit d5a2fb5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 38 deletions.
4 changes: 2 additions & 2 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@
"aeBridgeHeader": "Bridge",
"aeSwapEarnHeader": "Earn UCO token",
"price": "Price",
"aeBridgeLaunchMessage": "Please launch the aeBridge application to proceed. It will open in your default browser.",
"aeBridgeLaunchButton": "Launch aeBridge",
"dAppLaunchMessage": "The application is not available directly on this platform. Please launch the application via a browser to continue. It will open in your default browser.",
"dAppLaunchButton": "Launch the dApp",
"receiveHeader": "Receive assets on Archethic",
"receiveCopy": "Click to copy the address",
"earnValueLbl": "Earn",
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@
"aeBridgeHeader": "Bridge",
"aeSwapEarnHeader": "Gagner des UCO",
"price": "Prix",
"aeSwapLaunchMessage": "Veuillez lancer l'application aeSwap pour continuer. Elle s'ouvrira dans votre navigateur par défaut.",
"aeSwapLaunchButton": "Lancer aeSwap",
"dAppLaunchMessage": "L'application n'est pas disponible directement sur cette plateforme. Veuillez lancer l'application via un navigateur pour continuer. Elle s'ouvrira dans votre navigateur par défaut.",
"dAppLaunchButton": "Lancer la dApp",
"receiveHeader": "Recevoir des actifs sur Archethic",
"receiveCopy": "Cliquez pour copier l'adresse",
"earnValueLbl": "Gagner",
Expand Down
59 changes: 25 additions & 34 deletions lib/ui/views/sheets/dapp_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,41 +127,32 @@ class DAppSheetState extends ConsumerState<DAppSheet>
}

if (UniversalPlatform.isDesktopOrWeb) {
return Stack(
children: [
SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Column(
children: <Widget>[
ArchethicScrollbar(
child: Padding(
padding: EdgeInsets.only(
top: MediaQuery.of(context).padding.top + 10,
bottom: 80,
),
child: Padding(
padding: const EdgeInsets.only(top: 10),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
AppLocalizations.of(context)!
.aeBridgeLaunchMessage,
),
],
),
],
),
),
),
),
],

return SafeArea(
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
AppLocalizations.of(context)!.dAppLaunchMessage,
),
),
SizedBox(
height: 55,
child: AppButtonTiny(
AppButtonTinyType.primary,
AppLocalizations.of(context)!.dAppLaunchButton,
Dimens.buttonBottomDimens,
key: const Key('LaunchApplication'),
onPressed: dappUrl != null
? () async {
await launchUrl(Uri.parse(dappUrl!));
}
: null,
disabled: dappUrl == null,
),
),
],
),
SizedBox(
height: 55,
Expand Down

0 comments on commit d5a2fb5

Please sign in to comment.