diff --git a/android/app/build.gradle b/android/app/build.gradle index 1517a98..ce3a0da 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -45,8 +45,8 @@ android { applicationId "com.livehelperchat.chat" minSdkVersion 16 targetSdkVersion 29 - versionCode 32 - versionName "1.3" + versionCode 33 + versionName "1.4" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/lib/widget/chat_bubble.dart b/lib/widget/chat_bubble.dart index 0b9092c..d15f8c1 100644 --- a/lib/widget/chat_bubble.dart +++ b/lib/widget/chat_bubble.dart @@ -70,7 +70,11 @@ class Bubble extends StatelessWidget { new Padding( padding: const EdgeInsets.only(right: 4.0, bottom: 4.0), child: Html( - data: "
${message.msg}
", + data: message.msg, + onLinkTap: (url) { + _launchURL(url); + } + /*data: "
${message.msg}
", customRender: { "main": (RenderContext ctx, Widget child, attributes, e) { return SelectableLinkify( @@ -78,7 +82,7 @@ class Bubble extends StatelessWidget { text: e.text, style: TextStyle(fontSize: 16)); }, - }, + },*/ ), ), // positioned at bottom but object renderer needs it to calculate diff --git a/pubspec.yaml b/pubspec.yaml index 6234019..e6d0f38 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: livehelp description: A messenger for Live Helper Chat -version: 1.0.9+9 +version: 1.0.10+10 dependencies: flutter: sdk: flutter