NEW: 'linkify' all around, no more confusion, you dirty dogs
This commit is contained in:
parent
44862c7672
commit
40330ad1af
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:linkfy_text/linkfy_text.dart';
|
||||
import 'package:linkify_text/linkify_text.dart';
|
||||
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
|
|
|
@ -139,13 +139,13 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.2"
|
||||
linkfy_text:
|
||||
linkify_text:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "1.1.6"
|
||||
version: "1.2.1"
|
||||
lints:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -23,7 +23,7 @@ dependencies:
|
|||
flutter:
|
||||
sdk: flutter
|
||||
google_fonts: ^6.2.1
|
||||
linkfy_text:
|
||||
linkify_text:
|
||||
path: ../
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// A lightweight flutter package to linkify texts containing urls, emails and hashtags.
|
||||
library linkfy_text;
|
||||
library linkify_text;
|
||||
|
||||
export 'src/enum.dart';
|
||||
export 'src/linkify.dart';
|
|
@ -2,9 +2,9 @@ import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle;
|
|||
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:linkfy_text/src/enum.dart';
|
||||
import 'package:linkfy_text/src/model/link.dart';
|
||||
import 'package:linkfy_text/src/utils/regex.dart';
|
||||
import 'package:linkify_text/src/enum.dart';
|
||||
import 'package:linkify_text/src/model/link.dart';
|
||||
import 'package:linkify_text/src/utils/regex.dart';
|
||||
|
||||
/// Linkify [text] containing urls, emails or hashtag
|
||||
class LinkifyText extends StatelessWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:linkfy_text/src/enum.dart';
|
||||
import 'package:linkfy_text/src/utils/regex.dart';
|
||||
import 'package:linkify_text/src/enum.dart';
|
||||
import 'package:linkify_text/src/utils/regex.dart';
|
||||
|
||||
class Link {
|
||||
late final String? _value;
|
||||
|
|
|
@ -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
|
||||
String urlRegExp =
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:linkfy_text/src/enum.dart';
|
||||
import 'package:linkfy_text/src/utils/regex.dart';
|
||||
import 'package:linkify_text/src/enum.dart';
|
||||
import 'package:linkify_text/src/utils/regex.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
Loading…
Reference in New Issue