Closed ThomasGysemans closed 1 year ago
I tried to make this pull request as clear as possible without any unnecessary files.
Good job. Can you still leave the formatting as in the original? Now it's a little hard to see the changes.
Honestly I don't know how to edit a pull request I already made, and the new formatting doesn't change things that much. Sometimes it's useful, but I agree it's annoying when dealing with multiple method calls on a single line, or with ternary operators.
Will it be ok anyway?
Honestly I don't know how to edit a pull request I already made, and the new formatting doesn't change things that much. Sometimes it's useful, but I agree it's annoying when dealing with multiple method calls on a single line, or with ternary operators.
You can just commit to your branch and the pull request will be updated.
Will it be ok anyway?
In the current state, multiple formatting changes make it very difficult to understand what your code improvement is.
You can just commit to your branch and the pull request will be updated
All right, I'll remove the changes due to the formatting and only keep my new code in the .dart
files, this afternoon.
In the meantime, you should take a look at my pull request of xmlstream
: https://github.com/jorishermans/xmlstream/pull/15 which could help you improve your package. I hope it will get merged, but for this PR too the formatting might cause problems (which I'll fix too).
In the meantime, you should take a look at my pull request of
xmlstream
: jorishermans/xmlstream#15 which could help you improve your package. I hope it will get merged, but for this PR too the formatting might cause problems (which I'll fix too).
Nice improvement, but again very difficult to understand what has changed due to noisy reformatting :(
I edited both packages so that it's clearer. I hope my changes will help you improve your package.
If you want to take a look at the changes made in xmlstream
: https://github.com/jorishermans/xmlstream/pull/15 (which was surprisingly easy).
@ThomasGysemans Good job.
@ThomasGysemans Congratulations, your code improvements are online now.
The builder function of
StyledTextWidgetBuilderTag
now takes 3 arguments : the context, the attributes (like before) and the textContent of the tag. I added to the examples how to create custom<sup>
and<sub>
tags.I also fixed the use of a deprecated method:
MediaQuery.boldTextOverride()
. It's nowMediaQuery.boldTextOf()
.I tried to make this pull request as clear as possible without any unnecessary files.