flutter_chips_input 1.0.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 83

flutter_chips_input #

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

Usage #

Installation #

Follow installation instructions here

Example #

ChipsInput( 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 .toLowerCase() .indexOf(lowercaseQuery) .compareTo(b.name.toLowerCase().indexOf(lowercaseQuery))); } else { return const <AppProfile>[]; } }, onChanged: (data) { print(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 #

  • Overlay for ChipsInput doesn't move when input height changes i.e. when chips wrap
  • For some reason Overlay for ChipsInput floats above AppBar when scrolling

[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/README.md

example #

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:


dependencies:
  flutter_chips_input: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub 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.2.0 Mar 25, 2019 Go to the documentation of flutter_chips_input 1.2.0 Download flutter_chips_input 1.2.0 archive
1.1.0 Jan 26, 2019 Go to the documentation of flutter_chips_input 1.1.0 Download flutter_chips_input 1.1.0 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
Popularity:
Describes how popular the package is relative to other packages. [more]
81
Health:
Code health derived from static analysis. [more]
75
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
83
Learn more about scoring.

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

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/src/chips_input.dart. (-25 points)

Analysis of lib/src/chips_input.dart failed with 1 error:

line 34 col 7: Missing concrete implementation of TextInputClient.updateFloatingCursor.

Dependencies

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
flutter_test