1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-20 16:55:17 +00:00

Update application dependencies

This commit is contained in:
2022-06-11 15:04:11 +02:00
parent 2c44793def
commit bae83430ab
17 changed files with 168 additions and 140 deletions

View File

@ -29,7 +29,7 @@ import 'package:comunic/utils/intl_utils.dart';
import 'package:comunic/utils/navigation_utils.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:url_launcher/url_launcher_string.dart';
import '../../models/api_request.dart';
import '../../utils/log_utils.dart';
@ -281,8 +281,8 @@ class _PostTileState extends State<PostTile> {
Text(tr("YouTube movie")!)
],
),
onPressed: () =>
launch("https://youtube.com/watch/?v=" + widget.post.filePath!),
onPressed: () => launchUrlString(
"https://youtube.com/watch/?v=" + widget.post.filePath!),
);
}
@ -291,7 +291,7 @@ class _PostTileState extends State<PostTile> {
color:
darkTheme() ? darkerAccentColor : Color.fromRGBO(0xf7, 0xf7, 0xf7, 1),
child: InkWell(
onTap: () => launch(widget.post.linkURL!),
onTap: () => launchUrlString(widget.post.linkURL!),
child: Row(
children: <Widget>[
Padding(
@ -330,7 +330,7 @@ class _PostTileState extends State<PostTile> {
Widget _buildPostPDF() {
return ElevatedButton.icon(
onPressed: () {
launch(widget.post.fileURL!);
launchUrlString(widget.post.fileURL!);
},
icon: Icon(Icons.picture_as_pdf),
label: Text(tr("PDF")!),