Refactoring
Closed this issue · 0 comments
Packages' code is absolutely spaghetti, I'm come back to use field suggestion after a while, and now I'm not satisfied with its speed, parsing, code structure, etc. So, pretty much from everything.
We should refactor it, which makes the widget fast, easy to maintain, and more useful.
The first criteria of this refactoring is; Converting the full widget to a builder style.
Yes, at the moment it has, a kinda ListView.builder
factory. But, we should avoid giving users to use field suggestions without their builder.
So, the final and only-accessible way would be:
FieldSuggestion(
itemBuilder: (context, index) {...} // required
...
)
The second criteria of this refactoring is; Giving full TextField
customization ability to users. For example: in the current version, we aren't able to change the value's color TextField