From 6e96a554ff4007579c04488a1da5678f32be0d28 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 16 Apr 2020 13:34:49 +0200 Subject: [PATCH] Little optimisation --- lib/ui/widgets/text_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/widgets/text_widget.dart b/lib/ui/widgets/text_widget.dart index e600ead..e64f2be 100644 --- a/lib/ui/widgets/text_widget.dart +++ b/lib/ui/widgets/text_widget.dart @@ -76,7 +76,7 @@ class _TextWidgetState extends State { } // Check if it is an URL - if (validateUrl(word)) { + if (word.startsWith("https://") || word.startsWith("http://")) { changeWordType(); list.add(