tsvillain / flutter_chip_tags

Clip Styled Tags with TextFormField Package for Flutter

Home Page:https://pub.dev/packages/flutter_chip_tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_chip_tags

flutter_chip_tags allow developers to create tags from list and add or remove tags from list. It has a TextFormField where user can insert value and it will seprate each tag by space. Similar to GitHub Manage Topics

Getting Started

For Detailed Example head over to example/lib/main.dart

Sample

ChipTags(
  list: _myListCustom,
  chipColor: Colors.black,
  iconColor: Colors.white,
  textColor: Colors.white,
  decoration: InputDecoration(hintText: "Your Custom Hint"),
  keyboardType: TextInputType.text,
),

Properties

Property Function
list List<String> which you want to display as Tags.
chipColor Sets Chip background color. By default it's Blue.
iconColor Sets Icon color. By default it's White.
textColor Sets Text color. By default it's White.
separator String that acts as the target to separate.
decoration It accepts InputDecoration to decorate TextFormField.
keyboradType It accepts TextInputType to set the keyboard layout.
createTagOnSubmit It allows user to create tag on submit. If true they separtor will be ignored.
chipPosition It allows to display chip either above or below the textField. By default it's ChipPosition.below

Example Demo

About

Clip Styled Tags with TextFormField Package for Flutter

https://pub.dev/packages/flutter_chip_tags

License:MIT License


Languages

Language:C++ 40.6%Language:CMake 35.2%Language:Dart 15.3%Language:HTML 3.5%Language:C 2.8%Language:Swift 2.3%Language:Kotlin 0.2%Language:Objective-C 0.1%