NEW: 'linkify' all around, no more confusion, you dirty dogs

This commit is contained in:
JohnE 2025-10-06 20:33:03 -07:00
parent 44862c7672
commit 40330ad1af
8 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart'; import 'package:google_fonts/google_fonts.dart';
import 'package:linkfy_text/linkfy_text.dart'; import 'package:linkify_text/linkify_text.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());

View File

@ -139,13 +139,13 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.2" version: "3.0.2"
linkfy_text: linkify_text:
dependency: "direct main" dependency: "direct main"
description: description:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "1.1.6" version: "1.2.1"
lints: lints:
dependency: transitive dependency: transitive
description: description:

View File

@ -23,7 +23,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
google_fonts: ^6.2.1 google_fonts: ^6.2.1
linkfy_text: linkify_text:
path: ../ path: ../
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.

View File

@ -1,5 +1,5 @@
/// A lightweight flutter package to linkify texts containing urls, emails and hashtags. /// A lightweight flutter package to linkify texts containing urls, emails and hashtags.
library linkfy_text; library linkify_text;
export 'src/enum.dart'; export 'src/enum.dart';
export 'src/linkify.dart'; export 'src/linkify.dart';

View File

@ -2,9 +2,9 @@ import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle;
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:linkfy_text/src/enum.dart'; import 'package:linkify_text/src/enum.dart';
import 'package:linkfy_text/src/model/link.dart'; import 'package:linkify_text/src/model/link.dart';
import 'package:linkfy_text/src/utils/regex.dart'; import 'package:linkify_text/src/utils/regex.dart';
/// Linkify [text] containing urls, emails or hashtag /// Linkify [text] containing urls, emails or hashtag
class LinkifyText extends StatelessWidget { class LinkifyText extends StatelessWidget {

View File

@ -1,5 +1,5 @@
import 'package:linkfy_text/src/enum.dart'; import 'package:linkify_text/src/enum.dart';
import 'package:linkfy_text/src/utils/regex.dart'; import 'package:linkify_text/src/utils/regex.dart';
class Link { class Link {
late final String? _value; late final String? _value;

View File

@ -1,4 +1,4 @@
import 'package:linkfy_text/src/enum.dart'; import 'package:linkify_text/src/enum.dart';
// url regex that accept https, http, www, subdomains, ports and paths // url regex that accept https, http, www, subdomains, ports and paths
String urlRegExp = String urlRegExp =

View File

@ -1,5 +1,5 @@
import 'package:linkfy_text/src/enum.dart'; import 'package:linkify_text/src/enum.dart';
import 'package:linkfy_text/src/utils/regex.dart'; import 'package:linkify_text/src/utils/regex.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {