From 63917a7adb2f4f1691886466b6be72e16fa41104 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 22 Nov 2023 12:39:38 -0600 Subject: [PATCH] add tzkt link to about --- .../global_settings_view/about_view.dart | 26 ++++++ .../settings_menu/desktop_about_view.dart | 85 +++++++++++-------- 2 files changed, 76 insertions(+), 35 deletions(-) diff --git a/lib/pages/settings_views/global_settings_view/about_view.dart b/lib/pages/settings_views/global_settings_view/about_view.dart index 1c00b2891..4f4b3074e 100644 --- a/lib/pages/settings_views/global_settings_view/about_view.dart +++ b/lib/pages/settings_views/global_settings_view/about_view.dart @@ -525,6 +525,32 @@ class AboutView extends ConsumerWidget { const SizedBox( height: 12, ), + RoundedWhiteContainer( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + "Tezos functionality", + style: STextStyles.titleBold12(context), + ), + const SizedBox( + height: 4, + ), + CustomTextButton( + text: "Powered by TzKT API", + onTap: () { + launchUrl( + Uri.parse("https://tzkt.io"), + mode: LaunchMode.externalApplication, + ); + }, + ), + ], + ), + ), + const SizedBox( + height: 12, + ), const Spacer(), RichText( textAlign: TextAlign.center, diff --git a/lib/pages_desktop_specific/settings/settings_menu/desktop_about_view.dart b/lib/pages_desktop_specific/settings/settings_menu/desktop_about_view.dart index a54c0f443..eb197ebac 100644 --- a/lib/pages_desktop_specific/settings/settings_menu/desktop_about_view.dart +++ b/lib/pages_desktop_specific/settings/settings_menu/desktop_about_view.dart @@ -155,7 +155,7 @@ class DesktopAboutView extends ConsumerWidget { Expanded( child: RoundedWhiteContainer( width: 929, - height: 411, + height: 451, child: Padding( padding: const EdgeInsets.only(left: 10, top: 10), child: Column( @@ -669,41 +669,56 @@ class DesktopAboutView extends ConsumerWidget { const SizedBox(height: 35), Row( children: [ - Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text( - "Website", - style: STextStyles - .desktopTextExtraExtraSmall( - context) - .copyWith( - color: Theme.of( - context) - .extension< - StackColors>()! - .textDark), - ), - const SizedBox( - height: 2, - ), - CustomTextButton( - text: - "https://stackwallet.com", - onTap: () { - launchUrl( - Uri.parse( - "https://stackwallet.com"), - mode: LaunchMode - .externalApplication, - ); - }, - ), - ], - ) + Text( + "Website:", + style: STextStyles + .desktopTextExtraExtraSmall( + context) + .copyWith( + color: Theme.of(context) + .extension< + StackColors>()! + .textDark), + ), + CustomTextButton( + text: "https://stackwallet.com", + onTap: () { + launchUrl( + Uri.parse( + "https://stackwallet.com"), + mode: LaunchMode + .externalApplication, + ); + }, + ), ], - ) + ), + const SizedBox(height: 25), + Row( + children: [ + Text( + "Tezos functionality:", + style: STextStyles + .desktopTextExtraExtraSmall( + context) + .copyWith( + color: Theme.of(context) + .extension< + StackColors>()! + .textDark), + ), + CustomTextButton( + text: "Powered by TzKT API", + onTap: () { + launchUrl( + Uri.parse("https://tzkt.io"), + mode: LaunchMode + .externalApplication, + ); + }, + ), + ], + ), ], ); },