Skip to content
pubscout

advanced_chips_input

0.1.5, released 2 years ago by an unverified publisher

Customizable text input widget for creating chips from text in Flutter.

WASM-ready
$ flutter pub add advanced_chips_input
Source repository

What it does

Provides an AdvancedChipsInput widget that allows users to type and convert text into interactive chips. It supports features like chip deletion, input validation, backspace key handling, and customizable decorations and text styles.

AI-written summary of version 0.1.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to allow users to input a list of tags or mentions in a form.
  • You want built-in input validation for individual chips.
  • You require customization of chip containers, text styles, and delete icons.

Skip it when

  • You need complex autocomplete or asynchronous chip suggestions.
  • You are looking for a standard Material ChoiceChip or FilterChip group without a text input field.

Strengths

  • Supports input validation before creating a chip.
  • Handles backspace key events for deleting chips automatically.
  • Offers broad styling options including widget and chip container decorations.

Weaknesses

  • Lacks built-in asynchronous suggestion or autocomplete capabilities.
  • Limited to basic text-to-chip conversion features.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
AdvancedChipsInput(
  separatorCharacter: ' ',
  placeChipsSectionAbove: true,
  chipContainerDecoration: BoxDecoration(
    color: Colors.blue,
    borderRadius: BorderRadius.all(Radius.circular(50)),
  ),
  chipTextStyle: TextStyle(color: Colors.white),
  validateInput: true,
  validateInputMethod: (value) {
    if (value.length < 3) {
      return 'Input should be at least 3 characters long';
    }
    return null;
  },
)

Alternatives

Packages that do the same job and could replace advanced_chips_input.