link_text 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 89

Link Text #

Pub Package

Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links. Allows for custom styling.

Image

Usage #

Link Text widget requires no setup. Just simply pass a String with inlined urls, and the widget will take care of the rest.

final String _text = 'Lorem ipsum https://flutter.dev\nhttps://pub.dev';

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: LinkText(
        text: _text,
        textAlign: TextAlign.center,
      ),
    ),
  );
}

Installation #

Add to pubspec.yaml:

dependencies:
  link_text: ^0.1.1

For more info, check out example project.

[0.1.1]

  • Improved README

[0.1.0] - Initial release

  • Fully working LinkText widget - easily convert inlined urls into clickable links
  • Example project included

example/README.md

Link Text example #

Demonstrates how to use link_text package.

Image

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  link_text: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:link_text/link_text.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
79
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
89
Learn more about scoring.

We analyzed this package on Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/link_text.dart.

Run flutter format to format lib/link_text.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
url_launcher ^5.0.5 5.2.5
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
url_launcher_platform_interface 1.0.1
vector_math 2.0.8
Dev dependencies
flutter_test