flutter_typeahead
flutter_typeahead copied to clipboard
feat: add itemBorderRadius and wrap itemBuilder with IgnorePointer
Description
Fixes https://github.com/AbdulRahmanAlHamali/flutter_typeahead/issues/585 Fixes https://github.com/AbdulRahmanAlHamali/flutter_typeahead/issues/586
This PR does 2 things:
- Adds a new property
itemBorderRadius
which will be applied on the defaultitemBuilder
that is wrapped on theitemBuilder
passed by the user. - Wraps the
itemBuilder
passed by the user with anIgnorePointer
so that the interaction behaviour (ex. mouse hover) of the wrapping defaultitemBuilder
is not affected. This shouldn't really change much for the user as anyonTap
oronPress
event from the passeditemBuilder
is being ignored already due to the defaultitemBuilder
.
Checklist
Please check if your PR fulfils the following requirements:
- [x] I have read the Contributor Guide
- [x] I have filed an issue for the change
[#Issue Number] - [x] All code is formatted with
dartfmt
- [x] All code passes analysis with no errors or warnings
- [x] Changes work for both Material and Cupertino
- [x] New code has documentation where needed
- [x] New code has test coverage if applicable
- [x] All existing tests pass
- [x] Example project still compiles and runs
- [x] Changes have been documented in CHANGELOG.md
Using the Keep A Changelog format.
You may use cider to help with this. - [x] New code has been documented in the README.md if applicable
- [x] Commit messages follow the Conventional Commits format