From 016b90e904e3e9c6651c42a9c0b50415bdb6839b Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 16 Nov 2022 12:22:09 -0600 Subject: [PATCH] support view full buttons desktop --- .../global_settings_view/support_view.dart | 57 ++++++++----------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/lib/pages/settings_views/global_settings_view/support_view.dart b/lib/pages/settings_views/global_settings_view/support_view.dart index 02d281b66..9ff50345c 100644 --- a/lib/pages/settings_views/global_settings_view/support_view.dart +++ b/lib/pages/settings_views/global_settings_view/support_view.dart @@ -7,7 +7,6 @@ import 'package:stackwallet/utilities/theme/stack_colors.dart'; import 'package:stackwallet/utilities/util.dart'; import 'package:stackwallet/widgets/conditional_parent.dart'; import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart'; -import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart'; import 'package:stackwallet/widgets/rounded_white_container.dart'; import 'package:url_launcher/url_launcher.dart'; @@ -138,30 +137,20 @@ class AboutItem extends StatelessWidget { return RoundedWhiteContainer( padding: const EdgeInsets.all(0), - child: ConditionalParent( - condition: !isDesktop, - builder: (child) => RawMaterialButton( - // splashColor: Theme.of(context).extension()!.highlight, - materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular( - Constants.size.circularBorderRadius, - ), - ), - onPressed: () { - launchUrl( - Uri.parse(linkUrl), - mode: LaunchMode.externalApplication, - ); - }, - child: Padding( - padding: const EdgeInsets.symmetric( - horizontal: 12, - vertical: 20, - ), - child: child, + child: RawMaterialButton( + // splashColor: Theme.of(context).extension()!.highlight, + materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular( + Constants.size.circularBorderRadius, ), ), + onPressed: () { + launchUrl( + Uri.parse(linkUrl), + mode: LaunchMode.externalApplication, + ); + }, child: Padding( padding: isDesktop ? const EdgeInsets.symmetric( @@ -212,15 +201,19 @@ class AboutItem extends StatelessWidget { ], ), if (isDesktop) - BlueTextButton( - text: buttonText, - onTap: () { - launchUrl( - Uri.parse(linkUrl), - mode: LaunchMode.externalApplication, - ); - }, - ), + Text( + buttonText, + style: STextStyles.desktopTextExtraExtraSmall(context), + ) + // BlueTextButton( + // text: buttonText, + // onTap: () { + // launchUrl( + // Uri.parse(linkUrl), + // mode: LaunchMode.externalApplication, + // ); + // }, + // ), ], ), ),