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

Smoother HomeUI Scroll and Animation #170

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

Vishwa-Raghavendra
Copy link
Contributor

Pull Request (PR) Checklist

Please check if your pull request fulfills the following requirements:

  • The PR is submitted to the develop branch.
  • I've read the Contribution Guidelines.
  • The code builds and is tested on an actual Android device.
  • I confirm that I've run the code locally and everything works as expected.
  • I confirm that I've run bundle exec fastlane ui_tests and all tests are passing
    successfully.

Put an x in the boxes that apply.

  • Demo: Checking checkbox using [x]

Pull Request Type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Small update (fix typo, UI fine-tune, change color or something small)
  • Gradle Build related changes
  • Dependencies update (updating libraries)
  • Documentation
  • Tests (Unit, Integration, UI tests)
  • Other (please describe):

Put an x in the boxes that apply.

Does this PR closes any GitHub Issues?

Check Ivy Wallet Issues.

What's changed?

This PR template style was inspired by ionic-framework.

Copy link
Collaborator

@ILIYANGERMANOV ILIYANGERMANOV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Vishwa-Raghavendra your PR is good! I have some minor comments but overall that's an elegant and optimal solution. I'll merge it, right away! Thanks for the contribution!

@@ -28,4 +28,7 @@ object Constants {
"https://github.com/ILIYANGERMANOV/ivy-wallet#contributors-see-graph"

const val USER_INACTIVITY_TIME_LIMIT = 60 //Time in seconds

const val SWIPE_DOWN_THRESHOLD_OPEN_MORE_MENU = 200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constant is local for HomeTab and isn't global => it shouldn't be here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, this is okay to be a Constant as it is used in more than one place.

@@ -28,4 +28,7 @@ object Constants {
"https://github.com/ILIYANGERMANOV/ivy-wallet#contributors-see-graph"

const val USER_INACTIVITY_TIME_LIMIT = 60 //Time in seconds

const val SWIPE_DOWN_THRESHOLD_OPEN_MORE_MENU = 200
const val SWIPE_HORIZONTAL_THRESHOLD = 250
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constant is local for HomeMoreMenu and isn't global => it shouldn't be here.

@@ -170,6 +176,8 @@ private fun BoxWithConstraintsScope.UI(
}
var expanded by remember { mutableStateOf(false) }

val showHideBalanceRow = remember { mutableStateOf(false) }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hideBalanceRow might be a better name

@@ -339,11 +364,47 @@ fun HomeTransactionsLazyColumn(
) {
val ivyContext = LocalIvyContext.current

val nestedScrollConnection = remember {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice solution!

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

Successfully merging this pull request may close these issues.

None yet

2 participants