Skip to content
The coolest, smartest TextView for Flutter.
Branch: master
Clone or download
Latest commit ab18659 Dec 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
example bug fixes Dec 17, 2018
lib Initial Commit Dec 11, 2018
.gitignore bug fixes Dec 17, 2018
.metadata Initial Commit Dec 11, 2018
CHANGELOG.md bug fixes Dec 17, 2018
LICENSE
README.md Readem type fix Dec 19, 2018
pubspec.lock bumped up Flutter version to release Dec 13, 2018
pubspec.yaml bug fixes Dec 17, 2018
smart_text_view.iml Initial Commit Dec 11, 2018

README.md

SmartTextView

The coolest, smartest TextView for Flutter.

Version pub package

Pub - API Docs - GitHub

Features

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

Version compatibility

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.1.0

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),
          ),
        ),
      );
    },
  );

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KNOXPO BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


SmartTextView is a Knoxpo original.
You can’t perform that action at this time.