Coder Social home page Coder Social logo

Overflow exception about dash_chat HOT 7 CLOSED

fayeed avatar fayeed commented on June 24, 2024
Overflow exception

from dash_chat.

Comments (7)

fayeed avatar fayeed commented on June 24, 2024

I think this is because of this:

maxWidth: MediaQuery.of(context).size.width * 0.8,

This could easily be resolved by using LaoutBuilder in messageContainer.

from dash_chat.

jaumard avatar jaumard commented on June 24, 2024

Yes that's why, I'm fixing it right now to remove all MediaQuery usage to use layoutBuilder

from dash_chat.

jaumard avatar jaumard commented on June 24, 2024

I've made the modifications to use layoutBuilder, but it doesn't work as in some case constraints return infinity as height and width. Instead I think we should use FractionallySizedBox to avoir doing the calculation ourselves

from dash_chat.

fayeed avatar fayeed commented on June 24, 2024

I think this might be an issue with wrapping the root widget DashChat with LayoutBuilder it would be better to wrap MessageListView

from dash_chat.

fayeed avatar fayeed commented on June 24, 2024

or maybe try the solution you mentioned.

from dash_chat.

jaumard avatar jaumard commented on June 24, 2024

I have started like this but problem is that other Widget need the constraint (QuickReply, ContainerAvatar...) and I didn't want to wrap all of them with a layoutBuilder to gain in performance as only one is needed. I'll make some try some things....

from dash_chat.

jaumard avatar jaumard commented on June 24, 2024

Ok look like it works with layoutBuilders you can check the PR #59 here.

from dash_chat.

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.