Repository navigation
This PR should close issue #22 and add spacing property - #27
Conversation
MarcelGarus
left a comment
There was a problem hiding this comment.
I reviewed your code, but I'm not even sure padding is the most intuitive API for this. I believe when developers want to add padding, what they really want to do is add some space between the characters, not necessarily space on the outside. Intentions like "I want to add 16px of spacing between the characters" are much more common than "I want to put 8px of padding around each character".
So, I think it would be more intuitive if instead of the padding parameter you could specify a spacing parameter, which is just a double telling how much spacing to add between the characters:
We could for example implement this by adding something like this in the List.generate call:
var characterEntity = widget.builder(hasFocus, char);
if (i > 0) {
characterEntity = Padding(
padding: EdgeInsets.only(left: widget.spacing),
child: characterEntity,
);
}
That's why I would instead
Co-authored-by: Marcel Garus <marcel.garus@gmail.com>
Co-authored-by: Marcel Garus <marcel.garus@gmail.com>
Renamed characterEntity variable to characterWidget; Adjusted docstrings according to the change above;
|
Looks good to me! |
|
@Rahiche Next, we should update the version in the |
|
Done @MarcelGarus |

No description provided.