+7
lib/widgets/timeline_item.dart
+7
lib/widgets/timeline_item.dart
···
8
8
import 'package:grain/widgets/faceted_text.dart';
9
9
import 'package:grain/widgets/gallery_action_buttons.dart';
10
10
import 'package:grain/widgets/gallery_preview.dart';
11
+
import 'package:url_launcher/url_launcher.dart';
11
12
12
13
import '../providers/gallery_cache_provider.dart';
13
14
import '../screens/gallery_page.dart';
···
159
160
context,
160
161
MaterialPageRoute(builder: (_) => HashtagPage(hashtag: tag)),
161
162
),
163
+
onLinkTap: (url) async {
164
+
final uri = Uri.parse(url);
165
+
if (!await launchUrl(uri)) {
166
+
throw Exception('Could not launch $url');
167
+
}
168
+
},
162
169
),
163
170
),
164
171
const SizedBox(height: 8),