Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Closes #18; implemented swipe gesture to open more menu screen #64

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

timi10x
Copy link
Contributor

@timi10x timi10x commented Nov 8, 2021

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.

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, change color or something)
  • Gradle Build related changes
  • Dependencies update (updating libraries)
  • Documentation
  • 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?

Describe with a few bullets what's new:

  • Added swipe gesture on the HomeTab Screen to allow menu more to be opened as a better UX for users

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 @TimmyCoder your implementation is elegant, doesn't break performance, and after minor tweaks should work properly. I'll accept your PR and do the improvements myself. Thank you for your contribution!

.navigationBarsPadding()
.pointerInput(Unit) {
detectDragGestures(
Copy link
Collaborator

Choose a reason for hiding this comment

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

detectVerticalDragGesture() should be used and only swipe in downwards direction should be detected


Column(
modifier = Modifier
.fillMaxSize()
.statusBarsPadding()
.offset {
IntOffset(offset.x.roundToInt(), offset.y.roundToInt())
Copy link
Collaborator

Choose a reason for hiding this comment

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

offset.x.roundToInt() can be replaced just with 0 no need to round

@ILIYANGERMANOV ILIYANGERMANOV merged commit 90800bb into Ivy-Apps:develop Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants