Compare commits
2 Commits
0133104d41
...
40330ad1af
Author | SHA1 | Date |
---|---|---|
![]() |
40330ad1af | |
![]() |
44862c7672 |
|
@ -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 =
|
||||
|
|
42
pubspec.yaml
42
pubspec.yaml
|
@ -1,7 +1,7 @@
|
|||
name: linkfy_text
|
||||
description: A lightweight flutter package to linkify texts containing urls, emails and hashtags like twitter does.
|
||||
version: 1.1.6
|
||||
homepage: https://github.com/Iamstanlee/linkfy_text
|
||||
name: linkify_text
|
||||
description: A lightweight flutter package to linkify texts containing urls, emails and hashtags
|
||||
version: 1.2.0
|
||||
homepage: https://git.malloc.io/j3g/lum_linkify_text
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.6 <4.0.0'
|
||||
|
@ -17,40 +17,6 @@ dev_dependencies:
|
|||
test: ^1.16.5
|
||||
lint: ^1.5.3
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://dart.dev/tools/pub/pubspec
|
||||
|
||||
# The following section is specific to Flutter.
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
|
||||
# To add assets to your package, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
#
|
||||
# For details regarding assets in packages, see
|
||||
# https://flutter.dev/assets-and-images/#from-packages
|
||||
#
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||
|
||||
# To add custom fonts to your package, add a fonts section here,
|
||||
# in this "flutter" section. Each entry in this list should have a
|
||||
# "family" key with the font family name, and a "fonts" key with a
|
||||
# list giving the asset and other descriptors for the font. For
|
||||
# example:
|
||||
# fonts:
|
||||
# - family: Schyler
|
||||
# fonts:
|
||||
# - asset: fonts/Schyler-Regular.ttf
|
||||
# - asset: fonts/Schyler-Italic.ttf
|
||||
# style: italic
|
||||
# - family: Trajan Pro
|
||||
# fonts:
|
||||
# - asset: fonts/TrajanPro.ttf
|
||||
# - asset: fonts/TrajanPro_Bold.ttf
|
||||
# weight: 700
|
||||
#
|
||||
# For details regarding fonts in packages, see
|
||||
# https://flutter.dev/custom-fonts/#from-packages
|
||||
|
|
|
@ -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