Skip to content

Commit

Permalink
Launch actions in webview (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
JElgar authored Aug 20, 2024
1 parent 8160a41 commit 953e224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/views/action_info/action_info_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:nowu/assets/constants.dart';
import 'package:nowu/assets/icons/customIcons.dart';
import 'package:nowu/locator.dart';
import 'package:nowu/router.dart';
import 'package:nowu/router.gr.dart';
import 'package:nowu/services/causes_service.dart';
import 'package:nowu/themes.dart';
Expand All @@ -16,6 +15,7 @@ import 'package:auto_route/auto_route.dart';
import 'package:nowu/ui/views/authentication/bloc/authentication_bloc.dart';
import 'package:nowu/ui/views/authentication/bloc/authentication_state.dart';
import 'package:nowu/ui/views/explore/bloc/explore_filter_state.dart';
import 'package:url_launcher/url_launcher.dart';

const hPadding = CustomPaddingSize.small;

Expand Down Expand Up @@ -238,7 +238,7 @@ class _Body extends StatelessWidget {
child: const Text('Take action'),
style: secondaryFilledButtonStyle,
onPressed: () {
launchLinkExternal(context, action.link);
launchUrl(action.link);
},
),
),
Expand Down

0 comments on commit 953e224

Please sign in to comment.