mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Update application dependencies
This commit is contained in:
		@@ -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")!),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user