From 7225450c8e1c6070572a9c143fd97f0bff6b6630 Mon Sep 17 00:00:00 2001 From: Simone Sestito Date: Mon, 22 Oct 2018 13:42:54 +0200 Subject: [PATCH] Add URL launch on video button click --- lib/view/RocketView.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/view/RocketView.dart b/lib/view/RocketView.dart index f8b8f64..44d13d2 100644 --- a/lib/view/RocketView.dart +++ b/lib/view/RocketView.dart @@ -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; @@ -94,7 +95,7 @@ class RocketView extends StatelessWidget { ], mainAxisAlignment: MainAxisAlignment.end, ), - onTap: () {/* TODO */}, + onTap: () => UrlLauncher.launch(launch.videoUrl), ), ], ),