flutter_chips_input 1.0.4

  • README.md
  • Example
  • Installing
  • Versions
  • 80


Flutter library for building input fields with InputChips as input options.



Follow installation instructions here


    initialValue: [
        AppProfile('John Doe', 'jdoe@flutter.io', 'https://d2gg9evh47fn9z.cloudfront.net/800px_COLOURBOX4057996.jpg')
    decoration: InputDecoration(
        labelText: "Select People",
    findSuggestions: (String query) {
        if (query.length != 0) {
            var lowercaseQuery = query.toLowerCase();
            return mockResults.where((profile) {
                return profile.name.toLowerCase().contains(query.toLowerCase()) || profile.email.toLowerCase().contains(query.toLowerCase());
            }).toList(growable: false)
                ..sort((a, b) => a.name
        } else {
            return const <AppProfile>[];
    onChanged: (data) {
    chipBuilder: (context, state, profile) {
        return InputChip(
            key: ObjectKey(profile),
            label: Text(profile.name),
            avatar: CircleAvatar(
                backgroundImage: NetworkImage(profile.imageUrl),
            onDeleted: () => state.deleteChip(profile),
            materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
    suggestionBuilder: (context, state, profile) {
        return ListTile(
            key: ObjectKey(profile),
            leading: CircleAvatar(
                backgroundImage: NetworkImage(profile.imageUrl),
            title: Text(profile.name),
            subtitle: Text(profile.email),
            onTap: () => state.selectSuggestion(profile),

Known Issues

  • Deleting chips with keyboard on IOS makes app to crush (Flutter Issue with special characters used as replacement characters). Already reported #2
  • Overlay doesn't move when input height changes i.e. when chips wrap
  • For some reason Overlay floats above AppBar when scrolling

[1.0.4] - 17-Jan-2019

  • Fixed bug in later versions of Flutter where implementation of abstract method void updateFloatingCursor(RawFloatingCursorPoint point); missing
  • Fixed bug where initialValue chips cannot be deleted with keyboard
  • Fixed bug where onChanged() not fired when deleting chip using keyboard

[1.0.3] - 16-Dec-2018

  • Minor improvements in documentation

[1.0.2] - 16-Dec-2018

  • Improved library description.
  • Properly formatted example code in README

[1.0.1] - 15-Dec-2018

  • Added example to README

[1.0.0] - 15-Dec-2018

  • Initial release.



Example Project for flutter_chips_input

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_chips_input: ^1.0.4

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_chips_input/flutter_chips_input.dart';
Version Uploaded Documentation Archive
1.0.4 Jan 17, 2019 Go to the documentation of flutter_chips_input 1.0.4 Download flutter_chips_input 1.0.4 archive
1.0.3 Dec 16, 2018 Go to the documentation of flutter_chips_input 1.0.3 Download flutter_chips_input 1.0.3 archive
1.0.2 Dec 16, 2018 Go to the documentation of flutter_chips_input 1.0.2 Download flutter_chips_input 1.0.2 archive
1.0.1 Dec 15, 2018 Go to the documentation of flutter_chips_input 1.0.1 Download flutter_chips_input 1.0.1 archive
1.0.0 Dec 15, 2018 Go to the documentation of flutter_chips_input 1.0.0 Download flutter_chips_input 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10
  • Flutter: 1.1.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies