Skip to content

Commit

Permalink
fix: Tagline link opening (#4683)
Browse files Browse the repository at this point in the history
  • Loading branch information
WildOrangutan authored Oct 4, 2023
1 parent 2b49c87 commit 830720d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/smooth_app/lib/widgets/smooth_product_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import 'package:smooth_app/pages/preferences/user_preferences_widgets.dart';
import 'package:smooth_app/pages/scan/scan_product_card_loader.dart';
import 'package:smooth_app/pages/scan/search_page.dart';
import 'package:smooth_app/services/smooth_services.dart';
import 'package:url_launcher/url_launcher_string.dart';

class SmoothProductCarousel extends StatefulWidget {
const SmoothProductCarousel({
Expand Down Expand Up @@ -387,11 +386,7 @@ class _SearchCardContentTagLine extends StatelessWidget {
borderRadius: ANGULAR_BORDER_RADIUS,
onTap: tagLine.hasLink
? () async {
await launchUrlString(
tagLine.url,
// forms.gle links are not handled by the WebView
mode: LaunchMode.externalApplication,
);
await LaunchUrlHelper.launchURL(tagLine.url, false);
}
: null,
child: Center(
Expand Down

0 comments on commit 830720d

Please sign in to comment.