Git Product home page Git Product logo

Comments (5)

renefloor avatar renefloor commented on August 10, 2024

@davidmartos96 I fixed it in 0.3.0. Will update CachedNetworkImage this week.

from octo_image.

davidmartos96 avatar davidmartos96 commented on August 10, 2024

@renefloor
Thanks!
I took a look at the source code and example project and this fix would be a breaking change for octo image users. For instance, in the example, with the fix, the CircularProgressIndicator will need to be wrapped around a Center, as usual.

For the time being I was able to achieve the expected behavior wrapping my placeholders with a SizedBox.expand

from octo_image.

renefloor avatar renefloor commented on August 10, 2024

Yes I know, I also put BREAKING in the changelog for that: https://pub.dev/packages/octo_image/changelog
I indeed centered the progressIndicator, the CircularProgressIndicator as Placeholder was already centered: 3213069#diff-f8aabd1e3179bee091b84bf05b2b3fcf

I still think it is better to not center in the widget as that also doesn't happen for example in a container.

from octo_image.

davidmartos96 avatar davidmartos96 commented on August 10, 2024

I indeed centered the progressIndicator

Oh I didn't see that commit.

I still think it is better to not center in the widget as that also doesn't happen for example in a container.

Yes, I agree. It is also the behaviour of the Image widget in Flutter.

from octo_image.

renefloor avatar renefloor commented on August 10, 2024

Oh I didn't see that commit.

I can imagine, that wasn't part of the PR. I found a bit later that that one didn't center.

from octo_image.

Related Issues (17)

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.