Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WindowInsets] Refactor inset values #346

Merged
merged 15 commits into from
May 10, 2021
Merged

[WindowInsets] Refactor inset values #346

merged 15 commits into from
May 10, 2021

Conversation

chrisbanes
Copy link
Contributor

@chrisbanes chrisbanes commented Apr 16, 2021

  • Removed all @JvmFiles, there's no need to keep the API files 'clean'
  • Added new derivedWindowInsetsTypeOf() allowing creation of computed values (i.e systemBars)
  • InsetsType -> WindowInsets.Type
  • Split functions/classes up over different files.

@google-cla google-cla bot added the cla: yes label Apr 16, 2021
@chrisbanes chrisbanes changed the title [WindowInsets] Refactor inset values [WIP][WindowInsets] Refactor inset values Apr 22, 2021
@chrisbanes chrisbanes changed the title [WIP][WindowInsets] Refactor inset values [WindowInsets] Refactor inset values May 5, 2021
@chrisbanes chrisbanes marked this pull request as ready for review May 5, 2021 10:36
@chrisbanes chrisbanes merged commit a679d65 into main May 10, 2021
@chrisbanes chrisbanes deleted the cb/insets-append branch May 10, 2021 13:14
jossiwolf pushed a commit to jossiwolf/accompanist that referenced this pull request Aug 1, 2021
* Add Insets Bottom Nav sample

* Refactor systemBars to be a computed value instead

* Tweak bottom nav sample visuas

* Expand class structure

* Fix API

* Tidy up class structure and docs

* Insets -> InsetValues

The new name is clearer imo.

* Remove bottom navigation sample

* Add derivedInsetsTypeOf

* Move InsetValues.coerceEachDimensionAtLeast

* Fix tests

* Remove JvmFile

* InsetsType -> WindowInsets.Type
InsetValues -> Insets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants