Giter Site home page Giter Site logo

Comments (4)

eyoeldefare avatar eyoeldefare commented on May 30, 2024

Thanks for letting me know, I will see to it soon.

from textfield_tags.

eyoeldefare avatar eyoeldefare commented on May 30, 2024

Its working for me right now both on the web (chrome) and both mobile platforms. Anyone else experiencing this, please share.

from textfield_tags.

jmsquillaro avatar jmsquillaro commented on May 30, 2024

Thanks for taking a look into this. I have attached a photo of what I am experiencing (I just blurred out the content of the tags). As you can see, when full, there is no space to add more content as it does not slide over. Here is how the widget is being used:

textfield_tags_issue

Container(
        margin: const EdgeInsets.symmetric(vertical: 50.0, horizontal: 50.0),
        padding: const EdgeInsets.symmetric(vertical: 75.0, horizontal: 50.0),
        alignment: Alignment.center,
        width: 875.0,
        decoration: BoxDecoration(
          color: Colors.white60,
          borderRadius: BorderRadius.circular(10.0),
        ),
        child: FormBuilder(
          key: model.formKey,
          autovalidateMode: AutovalidateMode.disabled,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              ...
              Text('AUTHORIZED ACCESS EMAILS',
                  style: Theme.of(context)
                      .textTheme
                      .headline5
                      .copyWith(fontWeight: FontWeight.w500)),
              const SizedBox(height: 15.0),
              TextFieldTags(
                  initialTags: model.initialAuthorizedAccessEmailsList,
                  tagsStyler: TagsStyler(
                      tagTextStyle: TextStyle(
                          fontWeight: FontWeight.normal, color: Colors.white),
                      tagDecoration: BoxDecoration(
                        color: kPennRed,
                        borderRadius: BorderRadius.circular(0.0),
                      ),
                      tagCancelIcon:
                          Icon(Icons.cancel, size: 18.0, color: Colors.white),
                      tagCancelIconPadding: EdgeInsets.only(left: 5.0),
                      tagPadding: const EdgeInsets.all(6.0)),
                  textFieldStyler: TextFieldStyler(
                      textFieldFilled: true,
                      textFieldFilledColor: Colors.white,
                      textFieldFocusedBorder: OutlineInputBorder(
                        borderSide: BorderSide(color: kPennBlue, width: 3.0),
                      ),
                      textFieldEnabledBorder: OutlineInputBorder(
                        borderSide:
                            BorderSide(color: Colors.grey[400], width: 1.5),
                      ),
                      helperText:
                          'Enter the full and valid email addresses which will have full access to this organizer\'s account.'),
                  onTag: (tag) => model.addEmail(tag),
                  onDelete: (tag) => model.deleteEmail(tag)),
              const SizedBox(height: 50.0),
              ...
            ],
          ),
        ),
      ),

Again, this is only being seen on web and changing the window size does not affect it as the TextFieldTags is within a width constrained Container. Again, thank you for looking into this!

from textfield_tags.

eyoeldefare avatar eyoeldefare commented on May 30, 2024

Okay so I was able to reproduce your issue.
Remember that the width of the gap between the tags and the TextField border to the right is being calculated based on the width of your device and altering the width of its container will affect the width of the TextFieldTags in relation to the width of the device. I hope that makes sense.

So basically, right now, you have 2 choices.

  1. Remove width: 875.0 from your container
  2. Change the the property of tagsDistanceFromBorderEnd to something like tagsDistanceFromBorderEnd: 0.45 inside TextFieldTags because to artificially mimic the width of the device in relation to the width of the TextFieldTags widget.

from textfield_tags.

Related Issues (20)

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.