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

Animate the floating action button visibility in the client screen. #2072

Open
1 of 8 tasks
UduakUmanah10 opened this issue Feb 26, 2024 · 3 comments
Open
1 of 8 tasks

Comments

@UduakUmanah10
Copy link

Summary:

To improve visibility of the user I want to animate the visibility of the floating action button in the in the client screen after the first
five element is scrolled away from the screen.

Possible Approach:

I would achieve this using the lazy list state and the derivedstateof{} that observes a state and produces a new state to determine if the floating action button should be shown or removed without triggering excessive recompositing of the lazy list composable

steps to implement this feature:

  • move the floating action button into a separate composable function that has an argument namely the Scrollstate that would used to derive a new state by the derivedstateof() lambda .

  • the derived state would enable the visibility and invisibility of the floating action button without excessive recompositions.

  • replace the Icon composable with the newly created icon composable function in the scaffold.

Select Type:

  • UI Improvements
  • UI Add On
  • Improve Existing Code
  • New Feature
  • Other
@UduakUmanah10
Copy link
Author

UduakUmanah10 commented Feb 26, 2024

I would like to work on issue #2072

@therajanmaurya
Copy link
Member

Go ahead and send PR

@UduakUmanah10 UduakUmanah10 changed the title Animate the floating action button the client screen Animate the floating action button in the client screen Feb 27, 2024
@UduakUmanah10 UduakUmanah10 changed the title Animate the floating action button in the client screen Animate the floating action button visibility in the client screen. Feb 27, 2024
@Somesh-nayek
Copy link

@UduakUmanah10 please assign me this issue, i want to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants