Removed need for width and size + added cusomization options#29
Removed need for width and size + added cusomization options#29SeriousMonk wants to merge 2 commits intoArefMozafari:masterfrom
Conversation
|
Thanks |
İt was so neccesary. İf I didn't see this issue, I'd have added |
|
Hi again Second, I was thinking about an useful refactor would be moving all the configuring properties of the initializer to a separate class (As the growth of the project options). Something like What do you think? |
|
@SeriousMonk @Deatsilence |
This PR removes the need to pass width and height arguments to
FlutterPwValidator. The widget will now always fill the width and use only as much height as necessary for the widget.Added a few customization options:
textStyleargument to allow for easy text style customization of the bullet pointspaddingargument to apply padding to the entire widget in order to allow devs to adapt this widget to their text fields (eg if the textfield has border radius)showValidationBarandshowValidationTextflags allow to decide whether to show the validation bar and/or the validation bullet pointsAlso updated the
ValidationTextWidgetto show a 'x' or check icon instead of the bullet in the bullet points.Example project has been updated to reflect these changes.