smart_text_view 0.0.1-a copy "smart_text_view: ^0.0.1-a" to clipboard
smart_text_view: ^0.0.1-a copied to clipboard

outdated

A Smarter Text View package.

SmartTextView #

The coolest, smartest TextView for Flutter.

Features #

  • Simple text view
  • LinkTextSpan
  • Convert your normal text containing links or hash-tags to clickable

Version compatability #

See CHANGELOG for all breaking (and non-breaking) changes.

Getting started #

You should ensure that you add the router as a dependency in your flutter project.

dependencies:
 smart_text_view: ^0.0.1

You should then run flutter packages upgrade or update your packages in IntelliJ.

Example Project #

There is a pretty sweet example project in the example folder. Check it out. Otherwise, keep reading to get up and running.

Setting up #

  SmartText(
    text:
        'Hi, this is an example for both link example http://www.google.com and hashtag example #helloWorld',
    onOpen: (url) {
      _scaffoldKey.currentState.showSnackBar(
        SnackBar(
          content: ListTile(
            title: Text('Link is clicked!'),
            subtitle: Text(url),
          ),
        ),
      );
    },
    onTagClick: (tag) {
      _scaffoldKey.currentState.showSnackBar(
        SnackBar(
          content: ListTile(
            title: Text('Tag is clicked!'),
            subtitle: Text(tag),
          ),
        ),
      );
    },
  );

SmartTextView is a Knoxpo original.
8
likes
0
pub points
47%
popularity

Publisher

unverified uploader

A Smarter Text View package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on smart_text_view