mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-25 11:13:29 +00:00
Update application dependencies
This commit is contained in:
@ -5,7 +5,7 @@ import 'package:comunic/models/server_config.dart';
|
||||
import 'package:comunic/utils/date_utils.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
bool _bannerDismissed = false;
|
||||
|
||||
@ -26,7 +26,7 @@ class _BannerWidgetState extends State<BannerWidget> {
|
||||
}
|
||||
|
||||
void _openLink() {
|
||||
launch(srvConfig!.banner!.link!);
|
||||
launchUrlString(srvConfig!.banner!.link!);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -9,7 +9,7 @@ import 'package:comunic/ui/routes/video_player_route.dart';
|
||||
import 'package:comunic/ui/widgets/network_image_widget.dart';
|
||||
import 'package:filesize/filesize.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
const _AreaWidth = 150.0;
|
||||
const _AreaHeight = 100.0;
|
||||
@ -124,7 +124,7 @@ class _ConversationFileWidgetState extends State<ConversationFileWidget> {
|
||||
break;
|
||||
|
||||
default:
|
||||
launch(file.url!);
|
||||
launchUrlString(file.url!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
import 'new_password_input_widget.dart';
|
||||
|
||||
@ -229,7 +229,8 @@ class _CreateAccountWidgetState extends State<CreateAccountWidget> {
|
||||
widget.onCreated();
|
||||
}
|
||||
|
||||
void _openTOS() => launch(ServerConfigurationHelper.config!.termsURL);
|
||||
void _openTOS() =>
|
||||
launchUrlString(ServerConfigurationHelper.config!.termsURL);
|
||||
|
||||
void _showCreateAccountError() async {
|
||||
await showCupertinoDialog(
|
||||
|
@ -1,7 +1,7 @@
|
||||
import 'package:comunic/utils/input_utils.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
/// Text rich content widget
|
||||
///
|
||||
@ -41,7 +41,7 @@ class TextRichContentWidget extends StatelessWidget {
|
||||
text: s,
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
launch(s);
|
||||
launchUrlString(s);
|
||||
}));
|
||||
|
||||
currString = "";
|
||||
|
@ -2,7 +2,7 @@ import 'package:comunic/models/displayed_content.dart';
|
||||
import 'package:comunic/utils/input_utils.dart';
|
||||
import 'package:comunic/utils/navigation_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
/// Text widget
|
||||
///
|
||||
@ -24,13 +24,14 @@ class TextWidget extends StatelessWidget {
|
||||
this.textAlign = TextAlign.start,
|
||||
this.style,
|
||||
this.linksColor = Colors.blueAccent,
|
||||
}) : super(key: key);
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (this.content.isNull || this.content.isEmpty) return Text("");
|
||||
|
||||
var usedStyle = style == null ? Theme.of(context).textTheme.bodyText2 : style;
|
||||
var usedStyle =
|
||||
style == null ? Theme.of(context).textTheme.bodyText2 : style;
|
||||
|
||||
var content = this.content.parsedString!;
|
||||
|
||||
@ -78,7 +79,7 @@ class TextWidget extends StatelessWidget {
|
||||
word,
|
||||
style: style!.copyWith(color: linksColor),
|
||||
),
|
||||
onTap: () => launch(word),
|
||||
onTap: () => launchUrlString(word),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user