tag_view 1.0.1 copy "tag_view: ^1.0.1" to clipboard
tag_view: ^1.0.1 copied to clipboard

Flutter TagView(Hashtag view)

tag_view #

Get started #

Add dependency #

You can use the command to add tag_view as a dependency with the latest stable version:

$ dart pub add tag_view

Or you can manually add tag_view into the dependencies section in your pubspec.yaml:

dependencies:
  tag_view: ^replace-with-latest-version

Simple to use #

import 'package:tag_view/tag_view.dart';

List<String> tags = ['Tag 1, Tag 2'];

TagView(_tags,
    isEnableDelete: true,
    tagBackgroundColor: Colors.blue,
    tagTextColor: Colors.white,
    margin: EdgeInsets.symmetric(vertical: 5, horizontal: 5),
    onDelete: (deletePos) {
        setState(() {
            _tags.removeAt(deletePos);
        });
    },
    onClick: (clickPos) {
        ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(_tags[clickPos].toString())));
    }
)

Usage #

Screenshot

4
likes
120
points
95
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter TagView(Hashtag view)

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on tag_view