flutter_input_chips 1.0.3 copy "flutter_input_chips: ^1.0.3" to clipboard
flutter_input_chips: ^1.0.3 copied to clipboard

Flutter widget that builds the input field with input chips options

flutter_input_chips #

FlutterInputChips is a Flutter widget that builds the input field with input chips options

Pub Version GitHub

Demo #

Demo

Import #

import 'package:flutter_input_chips/flutter_input_chips.dart';

Example #

import 'package:flutter_input_chips/flutter_input_chips.dart';


FlutterInputChips(
    initialValue: const [],
    maxChips: 5,
    onChanged: (v) {
        setState(() {
            values = v;
        });
    },
    padding: const EdgeInsets.all(10),
    decoration: BoxDecoration(
        border: Border.all(color: Colors.grey),
        borderRadius: BorderRadius.circular(10),
        ),
    inputDecoration: const InputDecoration(
        border: InputBorder.none,
        hintText: "Enter text here",
    ),
    chipTextStyle: const TextStyle(
        fontWeight: FontWeight.bold,
        color: Colors.white,
    ),
    chipSpacing: 8,
    chipDeleteIconColor: Colors.white,
    chipBackgroundColor: Colors.blueGrey,
),

Available properties #

  /// list of Strings to prepopulate the chips with
  final List<String> initialValue;

  /// returns a list of string on inout field submitted
  final ValueChanged<List<String>> onChanged;

  /// number of maximum chips
  final int? maxChips;

  /// enables the input field and chip delete ability
  final bool enabled;

  /// inout field action
  final TextInputAction inputAction;

  /// keyboard appearance
  final Brightness keyboardAppearance;

  /// autofocus the inout field
  final bool autofocus;

  /// text capitalization type for the input field keyboard
  final TextCapitalization textCapitalization;

  /// text input decoration
  final InputDecoration inputDecoration;

  /// text overflow behaviour
  final TextOverflow textOverflow;

  /// keyboard input type
  final TextInputType inputType;

  /// parent container padding
  final EdgeInsets padding;
  
  /// padding container decoration
  final BoxDecoration? decoration;

  /// spacing between chips
  final double chipSpacing;
  // style for chip text/label
  final TextStyle? chipTextStyle;

  /// backhround color of the chip
  final Color? chipBackgroundColor;

  /// custom delete icon
  final Widget? chipDeleteIcon;

  /// if true, displays a delete icon in the chip
  final bool chipCanDelete;

  /// Color for delete icon in the chip
  final Color? chipDeleteIconColor;

Support #

If you lik this package. Feel free to create pull request or report issues.

9
likes
140
pub points
72%
popularity

Publisher

verified publishersujangainju.com.np

Flutter widget that builds the input field with input chips options

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_input_chips