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

[ComposeApp] Improve touch region area of input fields, Remove focus from fields on sharing image #296

Merged
merged 3 commits into from
Oct 31, 2021

Conversation

yogeshpaliyal
Copy link
Contributor

  1. Increase touch region area for Input fields
  2. Remove focus from fields on share as Image

closes #284 , closes #283

Checklist

  • Build and linting is passing.
  • This change is not breaking existing flow of a system.
  • I have written test case for this change.
  • This change is tested from all aspects.
  • Implemented any new third-party library (Which not existed before this change).

@PatilShreyas PatilShreyas changed the base branch from master to v1.3.1-dev October 30, 2021 10:19
Copy link
Owner

@PatilShreyas PatilShreyas left a comment

Choose a reason for hiding this comment

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

@yogeshpaliyal nice one 👍🏻. Everything looks good, just a comment

@@ -81,6 +82,7 @@ fun BasicNotyTextField(
)
}
BasicTextField(
modifier = Modifier.fillMaxWidth(),
Copy link
Owner

Choose a reason for hiding this comment

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

@yogeshpaliyal Let this modifier be provided from the function parameter so that we can configure it as per our need and reuse it.

Reuse modifier of this function and make it like this

BasicTextField(
    modifier = modifier,
    decorationBox = { inlineField -> 
        Box { // Move outer box to decorationbox
            AnimatedVisibility(...) {}
            inlineField()
        }
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PatilShreyas Added textFieldModifier param in BasicNotyTextField

Copy link
Owner

Choose a reason for hiding this comment

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

Okay

@PatilShreyas PatilShreyas changed the title Fix/share [ComposeApp] Improve touch region area of input fields, Remove focus from fields on sharing image Oct 30, 2021
Copy link
Owner

@PatilShreyas PatilShreyas left a comment

Choose a reason for hiding this comment

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

LGTM @yogeshpaliyal, Thanks for this PR 😃. merging...

@PatilShreyas PatilShreyas merged commit 8ed29b3 into PatilShreyas:v1.3.1-dev Oct 31, 2021
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.

Showing cursor in Shared Note as Image Add Note - Increase Fields default touch region
2 participants