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

Height property for search field #31

Closed
lilvinco opened this issue May 20, 2022 · 12 comments
Closed

Height property for search field #31

lilvinco opened this issue May 20, 2022 · 12 comments
Labels
invalid This issue isn't related to this package

Comments

@lilvinco
Copy link

Hi there,

Great package, a great time saver.

It's quite frustrating though that the search field's height can not be customised. Would be nice to be able to constrain the height of the textfield at will, a possible way to go about it is wrapping the textfield with a SizeBox and exposing the height property.

@maheshj01 maheshj01 added the in triage Issue is currently being triaged label May 23, 2022
@maheshj01
Copy link
Owner

Hi @lilvinco, Thanks for filing the issue. That sounds like a nice feature request. Also, I see you submitted a PR that seems to be closed. In case you want to contribute feel free to, I would love to review if not I can definitely get that landed in a week.

@maheshj01 maheshj01 added severe: new feature Request for a new capability or a feature and removed in triage Issue is currently being triaged labels May 23, 2022
@lilvinco
Copy link
Author

Thanks for the feedback, I will now create a new PR

@maheshj01
Copy link
Owner

Hi @lilvinco, Thanks for the PR. I was wondering of the usecase, where would we need to customize the height of the SearchField? since SearchField is always a singleliner. Even if you need this feature why not just wrap SearchField in SizedBox directly, wouldn't that work?

SizedBox(
  child: SearchField()
)

@maheshj01 maheshj01 added the waiting for author waiting for author to respond back with more info label Jun 1, 2022
@lilvinco
Copy link
Author

lilvinco commented Jun 1, 2022

Hi @maheshmnj

Without the height feature, the search field takes a default height that wouldn't fit into every design. Also, wrapping the widget with a Sizebox doesn't reduce the searchfield's height, it only reduces the available space and so the result would be an overflow error or a clipped search field

@lilvinco
Copy link
Author

lilvinco commented Jun 1, 2022

Screenshot 2022-06-02 at 00 27 22

Screenshot 2022-06-02 at 00 27 59

Screenshot 2022-06-02 at 00 28 21

@lilvinco
Copy link
Author

lilvinco commented Jun 1, 2022

1: searchableHeight : 50 is set
2. No height
3. Wrapped with SizedBox and set height property of 50

@maheshj01
Copy link
Owner

@lilvinco Just checking with you, if you would be interested in working on this any time soon?

@lilvinco
Copy link
Author

Oh yeah @maheshmnj

I had worked on it but my PR was left unattended to for a long time

@maheshj01
Copy link
Owner

Apologies for the delay @lilvinco, Now I am actively working on this package.

@lilvinco
Copy link
Author

Alright, I'll review it again

@lilvinco lilvinco mentioned this issue Apr 3, 2024
@lilvinco
Copy link
Author

lilvinco commented Apr 3, 2024

Hi @maheshmnj ,
I created a new PR here #135

@maheshj01
Copy link
Owner

maheshj01 commented Apr 4, 2024

@lilvinco thanks for the PR it looks great, And I really appreciate the time and effort you put in to get the PR, But I think that change is not required now, There have been significant changes in Searchfield since this issue was filed and now Searchfield should respect Its parent constraints without this PR. You can directly wrap a searchfield with a SizedBox or a Container and it should work out of the box. Let me know if that doesn't work for you.

If you encounter any other issues or have suggestions to improve this package, You are more than Welcome!

Thank you again for your effort.

@maheshj01 maheshj01 added invalid This issue isn't related to this package and removed severe: new feature Request for a new capability or a feature waiting for author waiting for author to respond back with more info labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This issue isn't related to this package
Projects
None yet
Development

No branches or pull requests

2 participants