GithubHelp home page GithubHelp logo

panuavakul / material_tag_editor Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 20.0 121 KB

A simple tag editor for inputing tags in Flutter.

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

License: MIT License

Kotlin 2.04% Swift 2.00% Objective-C 0.18% Dart 95.77%
dart flutter

material_tag_editor's People

Contributors

ccjy avatar drcdev avatar joecks avatar noordawod avatar panuavakul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

material_tag_editor's Issues

Why use CustomMultiChildLayout

Question, why do you define a CustomMultiChildLayout? Is there a technical reason for it?

I was reading through the code and thought it would be implemented with something like a Wrap but the actual implementation looks a lot more complicated. Do you need a CustomLayout in order to correctly place the TextField beside the tags?

Just curious

Is it possible to customize close button place?

I need to build a person tag list, where every tag has a person avatar icon (left) and a user name (right).

Every tag must be able to show and hide close button on a boolean state variable. If a user taps on a tag, then close button must appear instead (on the place) of the person avatar. If the user taps again, then close button disappear and on its place again person avatar.

Is it possible to implement such a functionality using material_tag_editor?

Suggestion new features - Not null tags

Congratulations for the package !
I have a suggestion:
Dontt allow the inclusion of the tag if two spaces are entered in sequence at the beginning of the filling

How to prevent adding empty row at the end?

I use material_tag_editor with my custom tags.

This is my code:

               TagEditor(
                      length: ....,
                      controller: ....,
                      focusNode: _focusNode,
                      maxLines: 1,
                      delimiters: [','],
                      hasAddButton: false,
                      resetTextOnSubmitted: true,
                      // This is set to grey just to illustrate the `textStyle` prop
                      textStyle: const TextStyle(color: Colors.black87),
                      onSubmitted: (outstandingValue) {
                        setState(() {
                          ....
                        });
                      },
                      inputDecoration: const InputDecoration(
                        border: InputBorder.none,
                        // hintText: 'Hint Text...',
                      ),
                      onTagChanged: (newValue) {
                        // setState(() {
                        //
                        // });
                      },
                      tagBuilder: (context, index) => _Chip(
                        key: ....,
                        index: index,
                        user: ...,
                        onDeleted: _onChipDelete,
                      ),
                      // InputFormatters example, this disallow \ and /
                      inputFormatters: [
                        FilteringTextInputFormatter.deny(RegExp(r'[/\\]'))
                      ],
                    ),

This is TagEditor with two tags:

Screenshot from 2022-12-28 15-40-49

You can see divider that is under TagEditor. Now we add one more tag:

Screenshot from 2022-12-28 15-45-49

As you see now we have empty row under tags. Could anyone say how to add new row only when it is needed?

inputformatters usage

I want to restrict the users to only enter text. Is there a way to restrict it? I am not finding a way to use the input formatters of the TextField

Please add controller parameter

I need to be able to control this variable freely.
For example, when the user enters content, but does not press the space or comma, I can help it complete the filling.

This parameter needs to be exposed.

Allow more control over the text box

Allow things like

multiline, so '\n' can be a delimiter
changing the done to something of our choosing, ie next
enable autofocus or disable autocorrect
filtering function so we can do things like .trim()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.