Skip to content

Commit

Permalink
On tap navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Guijarro committed Aug 12, 2023
1 parent f65fa38 commit 0f6d86f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ui/profile/components/dao_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:hypha_wallet/core/network/models/dao_data_model.dart';
import 'package:hypha_wallet/design/hypha_card.dart';
import 'package:hypha_wallet/design/hypha_colors.dart';
import 'package:hypha_wallet/design/themes/extensions/theme_extension_provider.dart';
import 'package:url_launcher/url_launcher.dart';


/// Render an IPFS image
Expand Down Expand Up @@ -41,6 +42,8 @@ class IpfsImage extends StatelessWidget {
class DaoWidget extends StatelessWidget {
final DaoData dao;

String get daoUrl => 'https://dao.hypha.earth/${dao.settingsDaoUrl}';

const DaoWidget({
super.key,
required this.dao,
Expand All @@ -52,7 +55,7 @@ class DaoWidget extends StatelessWidget {
child: InkWell(
borderRadius: BorderRadius.circular(16),
onTap: () {
/// Navigate to Hypha URL
launchUrl(Uri.parse(daoUrl)) ;
},
child: Stack(
children: [
Expand Down

0 comments on commit 0f6d86f

Please sign in to comment.