Skip to content

Commit

Permalink
Add URL launch on video button click
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Sestito committed Oct 22, 2018
1 parent 615c0df commit 7225450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/view/RocketView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import 'package:escape_earth/model/RocketLaunch.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart' as UrlLauncher;

class RocketView extends StatelessWidget {
final RocketLaunch launch;
Expand Down Expand Up @@ -94,7 +95,7 @@ class RocketView extends StatelessWidget {
],
mainAxisAlignment: MainAxisAlignment.end,
),
onTap: () {/* TODO */},
onTap: () => UrlLauncher.launch(launch.videoUrl),
),
],
),
Expand Down

0 comments on commit 7225450

Please sign in to comment.