GithubHelp home page GithubHelp logo

Comments (6)

demchenkoalex avatar demchenkoalex commented on August 20, 2024

I think these are safeAreaInsets, cause input was supposed to be on the bottom of the phone, so safe area is built in. Would customBottomWidget work for you? (you can basically copy code from the Input) and adjust to your needs, since it is not "standardly" placed. Or you would prefer for me to add an option to remove safe area?

from flutter_chat_ui.

demchenkoalex avatar demchenkoalex commented on August 20, 2024

added usesSafeArea to the inputOptions. Pass it as false and these should be gone

from flutter_chat_ui.

muezz avatar muezz commented on August 20, 2024

@demchenkoalex Not sure what you did in the latest update but I dont get the bottom padding at all with my current setup. I only get it on the left and right.

AND adding usesSafeArea as false has no effect.

Also, to answer your question, I would prefer it if I did not have to use the builder for something so simple. Padding should not be hardcoded. But if I have to do it, then I will.

image

from flutter_chat_ui.

demchenkoalex avatar demchenkoalex commented on August 20, 2024

do you have onAttachmentPressed? what if you pass null there? I don't see any more paddings in the code except from buttons, but they should look inside probably.. you can just open source code for the Input widget to see what looks suspicious to you

from flutter_chat_ui.

muezz avatar muezz commented on August 20, 2024

@demchenkoalex
I tried passing null for onAttachmentPressed but that did not help. I took your advice, cloned the repo and ran the example app. I used my own configurations for the chat widget and found the piece of code that "hardcodes" the padding. See the video below. It is a bit blurry as I couldn't upload above 10mb. I hope you can see what I am doing in it.

From what I understand, if onAttachmentPressed is not provided and the send icon is not visible, there is a hardcoded padding of 24. I have no need for the attachment callback and the button. And the send icon only becomes visible when I type. I dont see why this should be hardcoded like this.

flutter_chat_ui_.mov

from flutter_chat_ui.

demchenkoalex avatar demchenkoalex commented on August 20, 2024

yep, got it. I will add an option to change that

from flutter_chat_ui.

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.