Git Product home page Git Product logo

Comments (11)

dovahkiin98 avatar dovahkiin98 commented on April 27, 2024

I don't know if adding custom composables of already existing ones is a good idea. That would require alot of maintanance in the future. If Scaffold is changed, so will InsetAwareScaffold have to change.

Wouldn't a simple modifier that applies the insets to the any Composable? Something like .padding(WindowInsets) or applyWindowInsets()

from accompanist.

chrisbanes avatar chrisbanes commented on April 27, 2024

If Scaffold is changed, so will InsetAwareScaffold have to change.

Compose’s API is now API stable, so there won’t be any API changes. Also, this library isn’t designed to live forever.

Wouldn't a simple modifier that applies the insets to the any Composable? Something like .padding(WindowInsets) or applyWindowInsets()

We already have that: https://google.github.io/accompanist/insets/

from accompanist.

dovahkiin98 avatar dovahkiin98 commented on April 27, 2024

From what I remember in Flutter, only the Scaffold was insets aware, and it passed those insets to its children. So maybe that's how it should be done in here as well?

from accompanist.

chrisbanes avatar chrisbanes commented on April 27, 2024

Sure, but we're not copying Flutter, or being limited to what Flutter provides.

from accompanist.

Omico avatar Omico commented on April 27, 2024

I have made a PR for this.

from accompanist.

moffpage avatar moffpage commented on April 27, 2024

Please no, that feels like adding unnecessary bloat (a little rude, excuse me). I don't want to have many theme / styles / layout implementations, that's a past thing which in my opinion shouldn't be added (remember multiple application themes, in my opinion there's just has to be one - DayNight and that's it etc...)

from accompanist.

chrisbanes avatar chrisbanes commented on April 27, 2024

Please no, that feels like adding unnecessary bloat (a little rude, excuse me).

I get not wanting to bloat the main library, but this would be in an optional insets-layouts library (if we did it).

from accompanist.

moffpage avatar moffpage commented on April 27, 2024

from accompanist.

github-actions avatar github-actions commented on April 27, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from accompanist.

moffpage avatar moffpage commented on April 27, 2024

The issue is still relevant.

from accompanist.

moffpage avatar moffpage commented on April 27, 2024

Oh, thank you!

from accompanist.

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.